Remove HACK working around a bug in old Firefox versions
@@ -1696,7 +1696,6 @@ kms_base_rtp_endpoint_request_pt_map (GstElement * rtpbin, guint session,
if (sync != NULL) {
GstStructure *st;
gint32 clock_rate;
- const gchar *encoding_name;
st = gst_caps_get_structure (caps, 0);
if (gst_structure_get_int (st, "clock-rate", &clock_rate)) {
@@ -1705,24 +1704,6 @@ kms_base_rtp_endpoint_request_pt_map (GstElement * rtpbin, guint session,
GST_ERROR_OBJECT (self,
"Cannot get clockrate from caps: %" GST_PTR_FORMAT, caps);
}
-
- /* HACK: avoid wrong PTS assignment due to a Firefox bug:
- * https://bugzilla.mozilla.org/show_bug.cgi?id=1255371
- */
- encoding_name = gst_structure_get_string (st, "encoding-name");
- if (g_strcmp0 ("H264", encoding_name) == 0) {
- KmsSdpSession *sess = KMS_SDP_SESSION (self->priv->sess);
- GstSDPMessage *remote_sdp = kms_sdp_session_get_remote_sdp (sess);
- const GstSDPOrigin *origin = gst_sdp_message_get_origin (remote_sdp);
-
- if (g_str_has_prefix (origin->username, "mozilla")) {
- GST_WARNING_OBJECT (self,
- "Remote peer seems to be Firefox using H264: do not sync video");
- self->priv->perform_video_sync = FALSE;
- }
-
- gst_sdp_message_free (remote_sdp);
- }
}
return caps;
