Commit e4922b93 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Inline init_new_decoded_pad() into pad_added_cb().

parent 2741b6ca
......@@ -987,13 +987,19 @@ static struct wg_parser_stream *create_stream(struct wg_parser *parser)
return stream;
}
static void init_new_decoded_pad(GstElement *element, GstPad *pad, struct wg_parser *parser)
static void pad_added_cb(GstElement *element, GstPad *pad, gpointer user)
{
struct wg_parser *parser = user;
struct wg_parser_stream *stream;
const char *name;
GstCaps *caps;
int ret;
GST_LOG("parser %p, element %p, pad %p.", parser, element, pad);
if (gst_pad_is_linked(pad))
return;
caps = gst_caps_make_writable(gst_pad_query_caps(pad, NULL));
name = gst_structure_get_name(gst_caps_get_structure(caps, 0));
......@@ -1115,18 +1121,6 @@ out:
gst_caps_unref(caps);
}
static void pad_added_cb(GstElement *element, GstPad *pad, gpointer user)
{
struct wg_parser *parser = user;
GST_LOG("parser %p, element %p, pad %p.", parser, element, pad);
if (gst_pad_is_linked(pad))
return;
init_new_decoded_pad(element, pad, parser);
}
static void pad_removed_cb(GstElement *element, GstPad *pad, gpointer user)
{
struct wg_parser *parser = user;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment