h264parse: do wait for a keyframe when handling force key unit events

Although some decoders can start decoding with just PPS and SPS and waiting for
a keyframe is bad when the keyframe interval is large, gst-ffmpeg does need a
keyframe to start decoding.
This commit is contained in:
Alessandro Decina 2011-12-18 17:40:57 +01:00
parent 38a5719c53
commit 94ae4ca833

View file

@ -1276,12 +1276,10 @@ check_pending_key_unit_event (GstEvent * pending_event, GstSegment * segment,
running_time < pending_key_unit_ts)
goto out;
#if 0
if (flags & GST_BUFFER_FLAG_DELTA_UNIT) {
GST_DEBUG ("pending force key unit, waiting for keyframe");
goto out;
}
#endif
stream_time = gst_segment_to_stream_time (segment,
GST_FORMAT_TIME, timestamp);