dvdspu: Avoid warning if the video for a still frame arrives after the SPU
When we don't have a segment on the video pad yet during a still frame don't freak out.
This commit is contained in:
parent
52166768ed
commit
cb7c99b8ee
@ -826,6 +826,9 @@ gst_dvd_spu_check_still_updates (GstDVDSpu * dvdspu)
|
|||||||
|
|
||||||
if (dvdspu->spu_state.flags & SPU_STATE_STILL_FRAME) {
|
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,
|
vid_ts = gst_segment_to_running_time (&dvdspu->video_seg,
|
||||||
GST_FORMAT_TIME, dvdspu->video_seg.position);
|
GST_FORMAT_TIME, dvdspu->video_seg.position);
|
||||||
sub_ts = gst_segment_to_running_time (&dvdspu->subp_seg,
|
sub_ts = gst_segment_to_running_time (&dvdspu->subp_seg,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user