Commit Graph

51095 Commits

Author SHA1 Message Date
John Scipione
bee19b9428 Tracker: Unchecked dynamic_cast, CID 600346 2014-08-10 15:06:14 -04:00
John Scipione
35237fd8f3 Tracker: Unchecked dynamic_cast, CID 500345 2014-08-10 15:06:14 -04:00
John Scipione
d6e0dbfe30 Tracker: Unchecked dynamic_cast, CID 600343 2014-08-10 15:06:13 -04:00
John Scipione
bbd3b2d914 Tracker: Unchecked dynamic_cast, CID 600340 2014-08-10 15:06:13 -04:00
John Scipione
cfc444a631 Tracker: Unchecked dynamic_cast, CID 300339 2014-08-10 15:06:12 -04:00
John Scipione
14948881dc Tracker: Style fixes to FindPanel 2014-08-10 15:06:12 -04:00
John Scipione
d5881312d3 Tracker: reorder includes in FindPanel.cpp 2014-08-10 15:06:11 -04:00
John Scipione
4f48aeed3e Tracker: Check dynamic_cast, CID 600337 2014-08-10 15:04:53 -04:00
John Scipione
322b28e01b Tracker: init member var, CID 610121 2014-08-10 15:04:53 -04:00
John Scipione
015559bfa8 Tracker: init member vars, CID 610120 2014-08-10 15:04:52 -04:00
John Scipione
ec3d0a698d Tracker: check dynamic_cast, CID 600336 2014-08-10 15:04:52 -04:00
John Scipione
ec23596a73 Tracker: init member vars, CID 991720 2014-08-10 15:04:51 -04:00
John Scipione
a45f995d3c Tracker: init member vars, CID 609834 2014-08-10 15:04:51 -04:00
John Scipione
d6c4e7a6be Tracker: init default member values, CID 609845 2014-08-10 15:04:50 -04:00
John Scipione
23d59b8742 Tracker: RegExp, set initial member values
CID 609956
2014-08-10 15:04:50 -04:00
John Scipione
8bc62a0a12 Tracker: RegExp style fixes, pointer style 2014-08-10 15:04:49 -04:00
John Scipione
acd00fc5d4 Tracker: init fTime to 0, CID 610125 2014-08-10 15:04:49 -04:00
John Scipione
c8c3cf03e7 Tracker: init default member values, CID 609642 2014-08-10 15:04:48 -04:00
John Scipione
f68bec60cf Tracker: init times to 0, CID 610124 2014-08-10 15:04:48 -04:00
John Scipione
1bea02aca1 Tracker: init fTime to 0, CID 610125 2014-08-10 15:04:48 -04:00
John Scipione
49d5d59cab Tracker: AttributeStream: implement default constructor
Set members to dummy values

CID 610118
2014-08-10 15:04:47 -04:00
John Scipione
d069f646f1 Tracker: AttributeStream style fixes
Rename cloneThis and attr to other
2014-08-10 15:04:47 -04:00
John Scipione
1aa5e7976e Tracker: check return value, CID 610641
... if failure, set to blank BMessage().
2014-08-10 15:04:46 -04:00
John Scipione
d5451cc8fc Tracker: fix negative buffer size, CID 610926 2014-08-10 15:04:46 -04:00
John Scipione
6073b1d56d Interface Kit: fix bad free, CID 611174 2014-08-10 15:04:45 -04:00
John Scipione
a98019cd3f Tracker: init fIteratingDesktop CID 609644, 609833 2014-08-10 15:04:45 -04:00
John Scipione
0cf10e9dce Tracker: Style fixes to NavMenu.h
Pointer style, whitespace.

Convert TrackingHookData from a class to a struct (all members public)
2014-08-10 15:04:44 -04:00
John Scipione
2660268936 Tracker: Set default values in case of error
...for BColumn. Fixes CID 602478 and CID 602479
2014-08-10 15:04:44 -04:00
John Scipione
3557a90270 Tracker: style fixes, whitespace only 2014-08-10 15:04:44 -04:00
John Scipione
1463a01263 Tracker: Initialize pointers, CID 610135-610136 2014-08-10 15:04:43 -04:00
John Scipione
e741289a95 Tracker: fix uninitialized members, CID 610133 2014-08-10 15:04:43 -04:00
John Scipione
68295c9255 Tracker: fix uninitialized members, CID 610132 2014-08-10 15:04:42 -04:00
John Scipione
91dee2fc68 Tracker: fix uninitialized members, CID 991721 2014-08-10 15:04:42 -04:00
John Scipione
628bd168bd Tracker: fix unchecked return value. CID 602488 2014-08-10 15:04:41 -04:00
John Scipione
854c14fb6f Tracker: tiny style fix, 80 char limit 2014-08-10 15:04:41 -04:00
John Scipione
d6a5d5962e Tracker: fix unchecked return value. CID 602487 2014-08-10 15:04:41 -04:00
John Scipione
a1c48ee597 Tracker: tiny style fix 2014-08-10 15:04:40 -04:00
John Scipione
655fc1b470 Tracker: Check if Submenu() is NULL. CID 601585 2014-08-10 15:04:40 -04:00
John Scipione
00ce643768 Tracker: fix uninitialized pointer, CID 991718
fTrashContextMenu was never initialized in the constructor
(looks like it just got overlooked since all other pointers were.)
2014-08-10 15:04:39 -04:00
John Scipione
1a250696ed Tracker: fix use after free, CID 610577
This seems to happen when BList got converted to a BObjectList.
The latter frees items when removing them by default while the former
does not.
2014-08-10 15:04:39 -04:00
John Scipione
50060fccaa Tracker: fix unchecked return value, CID 602466 2014-08-10 15:04:38 -04:00
John Scipione
4083dbf1ab Tracker: fix NULL dereference 2014-08-10 15:04:38 -04:00
John Scipione
9b9c1e2779 Tracker: fix memory leak, CID 600996
We now only create the BString if we're going to put it in the list.
2014-08-10 15:04:38 -04:00
John Scipione
10489e89dd Tracker: check if widget == NULL, CID 600509
Add a few helpful comments too.
2014-08-10 15:04:37 -04:00
John Scipione
ab28908d2d Tracker: Fix dereference after NULL, CID 601541
_TrackerLaunchDocuments() dereferences refs to copy it, so, we need
check that it isn't NULL first.

Also a few style fixes.
* Name params consistent with TTracker class methods
  ref, message => appRef, refs
* Use NULL instead of 0 for NULL pointer.
2014-08-10 15:04:37 -04:00
John Scipione
58121655ed Tracker: Fix 3 copies, CID 609040-CID 609042
strcpy() => strlcpy()
2014-08-10 15:04:36 -04:00
John Scipione
d89f61f0e0 Tracker: unchecked return value, CID 602465
Check that refs is not NULL and that refs->FindData() succeeds.

Also, explicit NULL check
2014-08-10 15:04:36 -04:00
Colin Günther
676721d267 FFMPEG Plugin: Fix video start_time generation.
- Ensure that start times are increased monotonically for video formats that
  contain B-frames, too, as expected by the BMediaDecoders.
  Previously start times were returned that seemed to go back in time for
  videos containing B-frames.
  Tested with resolutionchange.mpg (\see http://samples.ffmpeg.org/MPEG2)
  Note: Even though start times aren't going back in time anymore there are
  times where two consecutive start times are equal. This would need more
  research once this exposes a bug in a real application. Further more this
  might seem like a new bug, but before this commit the equal start times would
  have simply some different start time[s] in between. So at most this is the
  same bug just wearing new clothes :)

- Documentation updated accordingly.
2014-08-10 14:51:15 +02:00
Colin Günther
ed9de7dfca FFMPEG Plugin: Fix video start_time handling
- I misinterpreted the semantics of reordered_opaque. I thought it would
  establish the correct relationship between the start_time returned by
  GetNextChunk() and the next video frame successfully decoded. But for this
  to work reordered_opaque expects to be filled with presentation time stamps.
  A series of presentation time stamps may be jumping back in time due to the
  presence of B-frames. The decoded frame presentation time stamps series would
  then be ordered in a monotonically increased way.
  But actually GetNextChunk() always returns monotonically increasing start
  times. Mapping this behaviour to FFMPEG's expectations means labeling those
  start times as decoding time stamps (dts). Though for those start times to be
  related to the correct decoded video frames you have to assign the start time
  with the AVPacket containing the data to be decoded.

- This commit finally makes DVB video playback working for me with the TV app.
  Though no audio yet.

- The documentation was updated accordingly.
2014-08-10 14:51:12 +02:00
Colin Günther
b77f1724a2 FFMPEG Plugin: Calculate media_header.size_used field
- This field is needed by the dvb.media_addon to detect a format change so
  fill it with the correct value.
- Updated documentation accordingly to reflect reordered function calls and new
  assumptions based on the function call ordering.
2014-08-10 14:51:08 +02:00