diff options
author | Jan Schmidt <jan@centricular.com> | 2015-02-08 05:06:48 +1100 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2015-02-08 06:16:49 +1100 |
commit | cb7c99b8eec531358dea3bcbd6ab06ac44892e87 (patch) | |
tree | 832112214d7ae2d2f26aec19841e7d506e43706a | |
parent | 52166768ed3451bba1a0988416e88a05d0dc17e4 (diff) |
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.
-rw-r--r-- | gst/dvdspu/gstdvdspu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c index 8ac8e65f9..f126f340f 100644 --- 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, |