Also update to the latest gstfragment API that provides
the fragment as a whole buffer.
gchar *path;
gchar *url;
GstFragment *fragment;
gchar *path;
gchar *url;
GstFragment *fragment;
- GstBufferList *buflist;
GstFlowReturn ret;
GST_DEBUG_OBJECT (mssdemux, "Getting url for stream %p", stream);
GstFlowReturn ret;
GST_DEBUG_OBJECT (mssdemux, "Getting url for stream %p", stream);
g_free (path);
g_free (url);
g_free (path);
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) {
case GST_FLOW_UNEXPECTED:
goto eos; /* EOS ? */
switch (ret) {
case GST_FLOW_UNEXPECTED:
goto eos; /* EOS ? */