diff --git a/subprojects/gst-plugins-bad/gst/mpegtsmux/gstatscmux.c b/subprojects/gst-plugins-bad/gst/mpegtsmux/gstatscmux.c index 7c40b9e2d6..9d038f87d3 100644 --- a/subprojects/gst-plugins-bad/gst/mpegtsmux/gstatscmux.c +++ b/subprojects/gst-plugins-bad/gst/mpegtsmux/gstatscmux.c @@ -306,8 +306,7 @@ gst_atsc_mux_create_new_stream (guint16 new_pid, TsMuxStreamType stream_type, } tsmux_stream_set_get_es_descriptors_func (ret, - (TsMuxStreamGetESDescriptorsFunc) gst_atsc_mux_stream_get_es_descrs, - user_data); + gst_atsc_mux_stream_get_es_descrs, user_data); return ret; } diff --git a/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmuxstream.c b/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmuxstream.c index f9f2f95274..7a78392a15 100644 --- a/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmuxstream.c +++ b/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmuxstream.c @@ -96,6 +96,13 @@ struct TsMuxStreamBuffer void *user_data; }; +static void +tsmux_stream_get_es_descrs_default (TsMuxStream * stream, + GstMpegtsPMTStream * pmt_stream, gpointer user_data) +{ + tsmux_stream_default_get_es_descrs (stream, pmt_stream); +} + /** * tsmux_stream_new: * @pid: a PID @@ -238,8 +245,7 @@ tsmux_stream_new (guint16 pid, guint stream_type, guint stream_number) stream->pcr_ref = 0; stream->next_pcr = -1; - stream->get_es_descrs = - (TsMuxStreamGetESDescriptorsFunc) tsmux_stream_default_get_es_descrs; + stream->get_es_descrs = tsmux_stream_get_es_descrs_default; stream->get_es_descrs_data = NULL; return stream; diff --git a/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmuxstream.h b/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmuxstream.h index 95ee9d460b..4f14a30daf 100644 --- a/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmuxstream.h +++ b/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmuxstream.h @@ -76,7 +76,7 @@ typedef enum TsMuxStreamState TsMuxStreamState; typedef struct TsMuxStreamBuffer TsMuxStreamBuffer; typedef void (*TsMuxStreamBufferReleaseFunc) (guint8 *data, void *user_data); -typedef void (*TsMuxStreamGetESDescriptorsFunc) (TsMuxStream *stream, GstMpegtsPMTStream *pmt_stream, void *user_data); +typedef void (*TsMuxStreamGetESDescriptorsFunc) (TsMuxStream *stream, GstMpegtsPMTStream *pmt_stream, gpointer user_data); /* Stream type assignments *