projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5216676
)
dvdspu: Avoid warning if the video for a still frame arrives after the SPU
author
Jan Schmidt
<jan@centricular.com>
Sat, 7 Feb 2015 18:06:48 +0000
(
05:06
+1100)
committer
Jan Schmidt
<jan@centricular.com>
Sat, 7 Feb 2015 19:16:49 +0000
(06:16 +1100)
When we don't have a segment on the video pad yet during a still frame
don't freak out.
gst/dvdspu/gstdvdspu.c
patch
|
blob
|
history
diff --git
a/gst/dvdspu/gstdvdspu.c
b/gst/dvdspu/gstdvdspu.c
index 8ac8e65f91b5af3a761a33f15ef1215ad281554f..f126f340f11e2bfee6a1f6c0d6079f53c7b00020 100644
(file)
--- a/
gst/dvdspu/gstdvdspu.c
+++ b/
gst/dvdspu/gstdvdspu.c
@@
-826,6
+826,9
@@
gst_dvd_spu_check_still_updates (GstDVDSpu * dvdspu)
if (dvdspu->spu_state.flags & SPU_STATE_STILL_FRAME) {
+ if (dvdspu->video_seg.format != GST_FORMAT_TIME)
+ return; /* No video segment or frames yet */
+
vid_ts = gst_segment_to_running_time (&dvdspu->video_seg,
GST_FORMAT_TIME, dvdspu->video_seg.position);
sub_ts = gst_segment_to_running_time (&dvdspu->subp_seg,