diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-04-23 17:22:11 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-04-23 17:47:18 +0200 |
commit | 0cd3938345d245954c37d58904364444fab8cef7 (patch) | |
tree | 7d1d03af43d3ebfd74b9b2cfee682036542866fe /ext/smoothstreaming | |
parent | c1f98daa743d5fd7ae14616295c974b67acbfe42 (diff) | |
download | gstreamer-plugins-bad-0cd3938345d245954c37d58904364444fab8cef7.tar.gz |
adaptivedemux: Allow subclasses to override how a new manifest would be downloaded
Diffstat (limited to 'ext/smoothstreaming')
-rw-r--r-- | ext/smoothstreaming/gstmssdemux.c | 9 | ||||
-rw-r--r-- | ext/smoothstreaming/gstmssmanifest.c | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index 90cfac1c1..8f10d7de0 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -135,7 +135,8 @@ static gboolean gst_mss_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek); static gint64 gst_mss_demux_get_manifest_update_interval (GstAdaptiveDemux * demux); static GstFlowReturn -gst_mss_demux_update_manifest (GstAdaptiveDemux * demux, GstBuffer * buffer); +gst_mss_demux_update_manifest_data (GstAdaptiveDemux * demux, + GstBuffer * buffer); static void gst_mss_demux_class_init (GstMssDemuxClass * klass) @@ -188,7 +189,8 @@ gst_mss_demux_class_init (GstMssDemuxClass * klass) gst_mss_demux_stream_select_bitrate; gstadaptivedemux_class->stream_update_fragment_info = gst_mss_demux_stream_update_fragment_info; - gstadaptivedemux_class->update_manifest = gst_mss_demux_update_manifest; + gstadaptivedemux_class->update_manifest_data = + gst_mss_demux_update_manifest_data; GST_DEBUG_CATEGORY_INIT (mssdemux_debug, "mssdemux", 0, "mssdemux plugin"); } @@ -546,7 +548,8 @@ gst_mss_demux_get_manifest_update_interval (GstAdaptiveDemux * demux) } static GstFlowReturn -gst_mss_demux_update_manifest (GstAdaptiveDemux * demux, GstBuffer * buffer) +gst_mss_demux_update_manifest_data (GstAdaptiveDemux * demux, + GstBuffer * buffer) { GstMssDemux *mssdemux = GST_MSS_DEMUX_CAST (demux); diff --git a/ext/smoothstreaming/gstmssmanifest.c b/ext/smoothstreaming/gstmssmanifest.c index 7254e4d98..e92e3da4c 100644 --- a/ext/smoothstreaming/gstmssmanifest.c +++ b/ext/smoothstreaming/gstmssmanifest.c @@ -724,7 +724,8 @@ _gst_mss_stream_audio_caps_from_qualitylevel_xml (GstMssStreamQuality * q) gst_structure_set (structure, "rate", G_TYPE_INT, rate, NULL); if (q->bitrate) - gst_structure_set (structure, "bitrate", G_TYPE_INT, (int) q->bitrate, NULL); + gst_structure_set (structure, "bitrate", G_TYPE_INT, (int) q->bitrate, + NULL); if (codec_data) gst_structure_set (structure, "codec_data", GST_TYPE_BUFFER, codec_data, |