mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
ogg: Update for negotiation related API changes
This commit is contained in:
parent
4027a4c34f
commit
bcbf0488bf
3 changed files with 3 additions and 11 deletions
|
@ -114,7 +114,6 @@ static void gst_ogg_pad_finalize (GObject * object);
|
|||
static const GstQueryType *gst_ogg_pad_query_types (GstPad * pad);
|
||||
static gboolean gst_ogg_pad_src_query (GstPad * pad, GstQuery ** query);
|
||||
static gboolean gst_ogg_pad_event (GstPad * pad, GstEvent * event);
|
||||
static GstCaps *gst_ogg_pad_getcaps (GstPad * pad);
|
||||
static GstOggPad *gst_ogg_chain_get_stream (GstOggChain * chain,
|
||||
glong serialno);
|
||||
|
||||
|
@ -144,12 +143,11 @@ gst_ogg_pad_init (GstOggPad * pad)
|
|||
{
|
||||
gst_pad_set_event_function (GST_PAD (pad),
|
||||
GST_DEBUG_FUNCPTR (gst_ogg_pad_event));
|
||||
gst_pad_set_getcaps_function (GST_PAD (pad),
|
||||
GST_DEBUG_FUNCPTR (gst_ogg_pad_getcaps));
|
||||
gst_pad_set_query_type_function (GST_PAD (pad),
|
||||
GST_DEBUG_FUNCPTR (gst_ogg_pad_query_types));
|
||||
gst_pad_set_query_function (GST_PAD (pad),
|
||||
GST_DEBUG_FUNCPTR (gst_ogg_pad_src_query));
|
||||
gst_pad_use_fixed_caps (GST_PAD (pad));
|
||||
|
||||
pad->mode = GST_OGG_PAD_MODE_INIT;
|
||||
|
||||
|
@ -226,12 +224,6 @@ gst_ogg_pad_query_types (GstPad * pad)
|
|||
return query_types;
|
||||
}
|
||||
|
||||
static GstCaps *
|
||||
gst_ogg_pad_getcaps (GstPad * pad)
|
||||
{
|
||||
return gst_pad_get_current_caps (pad);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_ogg_pad_src_query (GstPad * pad, GstQuery ** query)
|
||||
{
|
||||
|
|
|
@ -1187,7 +1187,7 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
|
|||
/* hbufs holds all buffers for the headers now */
|
||||
|
||||
/* create caps with the buffers */
|
||||
caps = gst_pad_get_caps (mux->srcpad);
|
||||
caps = gst_pad_get_caps (mux->srcpad, NULL);
|
||||
if (caps) {
|
||||
caps = gst_ogg_mux_set_header_on_caps (caps, hbufs);
|
||||
gst_pad_set_caps (mux->srcpad, caps);
|
||||
|
|
|
@ -582,7 +582,7 @@ gst_ogg_parse_chain (GstPad * pad, GstBuffer * buffer)
|
|||
}
|
||||
}
|
||||
|
||||
caps = gst_pad_get_caps (ogg->srcpad);
|
||||
caps = gst_pad_get_caps (ogg->srcpad, NULL);
|
||||
caps = gst_caps_make_writable (caps);
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
|
Loading…
Reference in a new issue