Commit 577fd012 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Remove unused callbacks.

These were left behind in the transition to 1.0. Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 999c862f
......@@ -175,30 +175,6 @@ gboolean event_sink_wrapper(GstPad *pad, GstObject *parent, GstEvent *event)
return cbdata.u.event_sink_data.ret;
}
gboolean accept_caps_sink_wrapper(GstPad *pad, GstCaps *caps)
{
struct cb_data cbdata = { ACCEPT_CAPS_SINK };
cbdata.u.accept_caps_sink_data.pad = pad;
cbdata.u.accept_caps_sink_data.caps = caps;
call_cb(&cbdata);
return cbdata.u.accept_caps_sink_data.ret;
}
gboolean setcaps_sink_wrapper(GstPad *pad, GstCaps *caps)
{
struct cb_data cbdata = { SETCAPS_SINK };
cbdata.u.setcaps_sink_data.pad = pad;
cbdata.u.setcaps_sink_data.caps = caps;
call_cb(&cbdata);
return cbdata.u.setcaps_sink_data.ret;
}
GstFlowReturn got_data_sink_wrapper(GstPad *pad, GstObject *parent, GstBuffer *buf)
{
struct cb_data cbdata = { GOT_DATA_SINK };
......
......@@ -38,8 +38,6 @@ enum CB_TYPE {
REQUEST_BUFFER_SRC,
EVENT_SRC,
EVENT_SINK,
ACCEPT_CAPS_SINK,
SETCAPS_SINK,
GOT_DATA_SINK,
GOT_DATA,
REMOVED_DECODED_PAD,
......@@ -101,16 +99,6 @@ struct cb_data {
GstEvent *event;
gboolean ret;
} event_sink_data;
struct accept_caps_sink_data {
GstPad *pad;
GstCaps *caps;
gboolean ret;
} accept_caps_sink_data;
struct setcaps_sink_data {
GstPad *pad;
GstCaps *caps;
gboolean ret;
} setcaps_sink_data;
struct got_data_sink_data {
GstPad *pad;
GstObject *parent;
......@@ -179,8 +167,6 @@ void no_more_pads_wrapper(GstElement *decodebin, gpointer user) DECLSPEC_HIDDEN;
GstFlowReturn request_buffer_src_wrapper(GstPad *pad, GstObject *parent, guint64 ofs, guint len, GstBuffer **buf) DECLSPEC_HIDDEN;
gboolean event_src_wrapper(GstPad *pad, GstObject *parent, GstEvent *event) DECLSPEC_HIDDEN;
gboolean event_sink_wrapper(GstPad *pad, GstObject *parent, GstEvent *event) DECLSPEC_HIDDEN;
gboolean accept_caps_sink_wrapper(GstPad *pad, GstCaps *caps) DECLSPEC_HIDDEN;
gboolean setcaps_sink_wrapper(GstPad *pad, GstCaps *caps) DECLSPEC_HIDDEN;
GstFlowReturn got_data_sink_wrapper(GstPad *pad, GstObject *parent, GstBuffer *buf) DECLSPEC_HIDDEN;
GstFlowReturn got_data_wrapper(GstPad *pad, GstObject *parent, GstBuffer *buf) DECLSPEC_HIDDEN;
void removed_decoded_pad_wrapper(GstElement *bin, GstPad *pad, gpointer user) DECLSPEC_HIDDEN;
......
......@@ -2233,18 +2233,6 @@ void CALLBACK perform_cb(TP_CALLBACK_INSTANCE *instance, void *user)
cbdata->u.event_sink_data.ret = event_sink(data->pad, data->parent, data->event);
break;
}
case ACCEPT_CAPS_SINK:
{
struct accept_caps_sink_data *data = &cbdata->u.accept_caps_sink_data;
cbdata->u.accept_caps_sink_data.ret = accept_caps_sink(data->pad, data->caps);
break;
}
case SETCAPS_SINK:
{
struct setcaps_sink_data *data = &cbdata->u.setcaps_sink_data;
cbdata->u.setcaps_sink_data.ret = setcaps_sink(data->pad, data->caps);
break;
}
case GOT_DATA_SINK:
{
struct got_data_sink_data *data = &cbdata->u.got_data_sink_data;
......
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