diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 85a9a91e43..2aa456b63e 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -572,12 +572,6 @@ gst_hls_demux_handle_buffer (GstAdaptiveDemux * demux, GST_DEBUG_OBJECT (hlsdemux, "Typefind result: %" GST_PTR_FORMAT " prob:%d", caps, prob); - if (!hlsdemux->input_caps - || !gst_caps_is_equal (caps, hlsdemux->input_caps)) { - gst_caps_replace (&hlsdemux->input_caps, caps); - GST_INFO_OBJECT (demux, "Input source caps: %" GST_PTR_FORMAT, - hlsdemux->input_caps); - } gst_adaptive_demux_stream_set_caps (stream, caps); hlsdemux->do_typefind = FALSE; } @@ -782,11 +776,6 @@ gst_hls_demux_reset (GstAdaptiveDemux * ademux) g_object_unref (demux->key_fragment); demux->key_fragment = NULL; - if (demux->input_caps) { - gst_caps_unref (demux->input_caps); - demux->input_caps = NULL; - } - if (demux->client) { gst_m3u8_client_free (demux->client); demux->client = NULL; diff --git a/ext/hls/gsthlsdemux.h b/ext/hls/gsthlsdemux.h index 7acfead69c..f14dbd5f96 100644 --- a/ext/hls/gsthlsdemux.h +++ b/ext/hls/gsthlsdemux.h @@ -66,7 +66,6 @@ struct _GstHLSDemux gint srcpad_counter; - GstCaps *input_caps; gchar *uri; /* Original playlist URI */ GstM3U8Client *client; /* M3U8 client */ gboolean do_typefind; /* Whether we need to typefind the next buffer */