Commit 99c2aa14 authored by Justin Kim's avatar Justin Kim Committed by Sebastian Dröge

mpegtsmux: don't leak pad name when treating events

https://bugzilla.gnome.org/show_bug.cgi?id=722699
parent 0bb2e2f7
...@@ -809,10 +809,9 @@ mpegtsmux_sink_event (GstCollectPads * pads, GstCollectData * data, ...@@ -809,10 +809,9 @@ mpegtsmux_sink_event (GstCollectPads * pads, GstCollectData * data,
gst_video_event_parse_downstream_force_key_unit (event, gst_video_event_parse_downstream_force_key_unit (event,
&timestamp, &stream_time, &running_time, &all_headers, &count); &timestamp, &stream_time, &running_time, &all_headers, &count);
GST_INFO_OBJECT (mux, "have downstream force-key-unit event on pad %s, " GST_INFO_OBJECT (pad, "have downstream force-key-unit event, "
"seqnum %d, running-time %" GST_TIME_FORMAT " count %d", "seqnum %d, running-time %" GST_TIME_FORMAT " count %d",
gst_pad_get_name (pad), gst_event_get_seqnum (event), gst_event_get_seqnum (event), GST_TIME_ARGS (running_time), count);
GST_TIME_ARGS (running_time), count);
if (mux->force_key_unit_event != NULL) { if (mux->force_key_unit_event != NULL) {
GST_INFO_OBJECT (mux, "skipping downstream force key unit event " GST_INFO_OBJECT (mux, "skipping downstream force key unit event "
...@@ -914,8 +913,7 @@ mpegtsmux_src_event (GstPad * pad, GstObject * parent, GstEvent * event) ...@@ -914,8 +913,7 @@ mpegtsmux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
done = TRUE; done = TRUE;
break; break;
case GST_ITERATOR_OK: case GST_ITERATOR_OK:
GST_INFO_OBJECT (mux, "forwarding to %s", GST_INFO_OBJECT (pad, "forwarding");
gst_pad_get_name (sinkpad));
tmp = gst_pad_push_event (sinkpad, gst_event_ref (event)); tmp = gst_pad_push_event (sinkpad, gst_event_ref (event));
GST_INFO_OBJECT (mux, "result %d", tmp); GST_INFO_OBJECT (mux, "result %d", tmp);
/* succeed if at least one pad succeeds */ /* succeed if at least one pad succeeds */
......
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