gstrtpsession: Add special mode to use FIR as repair as Google does

https://bugzilla.gnome.org/show_bug.cgi?id=658419
This commit is contained in:
Olivier Crête 2011-09-02 19:20:07 -04:00 committed by Mark Nauwelaerts
parent 79a9564c68
commit 1169bb05af

View file

@ -1400,6 +1400,12 @@ gst_rtp_session_request_remote_key_unit (GstRtpSession * rtpsession,
pli = gst_structure_has_field (s, "rtcp-fb-nack-pli");
fir = gst_structure_has_field (s, "rtcp-fb-ccm-fir") && all_headers;
/* Google Talk uses FIR for repair, so send it even if we just want a
* regular PLI */
if (!pli &&
gst_structure_has_field (s, "rtcp-fb-x-gstreamer-fir-as-repair"))
fir = TRUE;
gst_caps_unref (caps);
if (pli || fir)