mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 22:05:58 +00:00
mssdemux: set caps to buffers before pushing
Also update to the latest gstfragment API that provides the fragment as a whole buffer.
This commit is contained in:
parent
91dd173f3c
commit
32d8a72bfc
1 changed files with 5 additions and 3 deletions
|
@ -412,7 +412,7 @@ gst_mss_demux_stream_loop (GstMssDemuxStream * stream)
|
||||||
gchar *path;
|
gchar *path;
|
||||||
gchar *url;
|
gchar *url;
|
||||||
GstFragment *fragment;
|
GstFragment *fragment;
|
||||||
GstBufferList *buflist;
|
GstBuffer *buffer;
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (mssdemux, "Getting url for stream %p", stream);
|
GST_DEBUG_OBJECT (mssdemux, "Getting url for stream %p", stream);
|
||||||
|
@ -438,9 +438,11 @@ gst_mss_demux_stream_loop (GstMssDemuxStream * stream)
|
||||||
g_free (path);
|
g_free (path);
|
||||||
g_free (url);
|
g_free (url);
|
||||||
|
|
||||||
buflist = gst_fragment_get_buffer_list (fragment);
|
buffer = gst_fragment_get_buffer (fragment);
|
||||||
|
buffer = gst_buffer_make_metadata_writable (buffer);
|
||||||
|
gst_buffer_set_caps (buffer, GST_PAD_CAPS (stream->pad));
|
||||||
|
|
||||||
ret = gst_pad_push_list (stream->pad, buflist); /* TODO check return */
|
ret = gst_pad_push (stream->pad, buffer); /* TODO check return */
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case GST_FLOW_UNEXPECTED:
|
case GST_FLOW_UNEXPECTED:
|
||||||
goto eos; /* EOS ? */
|
goto eos; /* EOS ? */
|
||||||
|
|
Loading…
Reference in a new issue