diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2015-04-07 18:00:53 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2015-04-13 18:13:35 -0600 |
commit | 1394a66e62532492b2c43456c8d68cd35591d272 (patch) | |
tree | c4d12b1997a3acb0c4def1d3807926e9f0fa8d28 | |
parent | 6c27293ffed92c8f81c1cc2f337d7f00302a3caa (diff) |
rtpvp8depay: When dropping intra packet, request keyframe
https://bugzilla.gnome.org/show_bug.cgi?id=747208
-rw-r--r-- | gst/rtp/gstrtpvp8depay.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gst/rtp/gstrtpvp8depay.c b/gst/rtp/gstrtpvp8depay.c index f1602a35b..cafdad5b8 100644 --- a/gst/rtp/gstrtpvp8depay.c +++ b/gst/rtp/gstrtpvp8depay.c @@ -24,6 +24,8 @@ #include "gstrtpvp8depay.h" +#include <gst/video/video.h> + #include <stdio.h> GST_DEBUG_CATEGORY_STATIC (gst_rtp_vp8_depay_debug); @@ -189,8 +191,10 @@ gst_rtp_vp8_depay_process (GstRTPBaseDepayload * depay, GstBuffer * buf) if (!self->caps_sent) { gst_buffer_unref (out); out = NULL; - GST_WARNING_OBJECT (self, "Dropping inter-frame before intra-frame"); - + GST_INFO_OBJECT (self, "Dropping inter-frame before intra-frame"); + gst_pad_push_event (GST_RTP_BASE_DEPAYLOAD_SINKPAD (depay), + gst_video_event_new_upstream_force_key_unit (GST_CLOCK_TIME_NONE, + TRUE, 0)); } } else { GstMapInfo info; |