mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
mpegtsmux: update after collectpads2 changes
This commit is contained in:
parent
4964db6a1c
commit
f547336fdc
1 changed files with 1 additions and 22 deletions
|
@ -663,27 +663,6 @@ mpegtsmux_choose_best_stream (MpegTsMux * mux)
|
||||||
|
|
||||||
#define COLLECT_DATA_PAD(collect_data) (((GstCollectData2 *)(collect_data))->pad)
|
#define COLLECT_DATA_PAD(collect_data) (((GstCollectData2 *)(collect_data))->pad)
|
||||||
|
|
||||||
static MpegTsPadData *
|
|
||||||
find_pad_data (MpegTsMux * mux, GstPad * pad)
|
|
||||||
{
|
|
||||||
GSList *walk;
|
|
||||||
MpegTsPadData *ts_data = NULL;
|
|
||||||
|
|
||||||
GST_COLLECT_PADS2_STREAM_LOCK (mux->collect);
|
|
||||||
walk = mux->collect->pad_list;
|
|
||||||
while (walk) {
|
|
||||||
if (((GstCollectData2 *) walk->data)->pad == pad) {
|
|
||||||
ts_data = (MpegTsPadData *) walk->data;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
walk = g_slist_next (walk);
|
|
||||||
}
|
|
||||||
GST_COLLECT_PADS2_STREAM_UNLOCK (mux->collect);
|
|
||||||
|
|
||||||
return ts_data;
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
mpegtsmux_sink_event (GstPad * pad, GstEvent * event)
|
mpegtsmux_sink_event (GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
|
@ -692,7 +671,7 @@ mpegtsmux_sink_event (GstPad * pad, GstEvent * event)
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
gboolean forward = TRUE;
|
gboolean forward = TRUE;
|
||||||
|
|
||||||
ts_data = find_pad_data (mux, pad);
|
ts_data = (MpegTsPadData *) gst_pad_get_element_private (pad);
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_CUSTOM_DOWNSTREAM:
|
case GST_EVENT_CUSTOM_DOWNSTREAM:
|
||||||
|
|
Loading…
Reference in a new issue