summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-09-02 23:28:38 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-09-02 23:28:38 +0100
commit310a633afb6cdf3620381cf5bd0459370b989aeb (patch)
tree64d13a065495ad568e45de3170ace7cef8fb6f27
parente43d1959a866ebcc838424db412095426428a7f5 (diff)
mpegpsdemux: minor clean-up
-rw-r--r--gst/mpegdemux/gstmpegdemux.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index ec7f47524..815fffa6b 100644
--- a/gst/mpegdemux/gstmpegdemux.c
+++ b/gst/mpegdemux/gstmpegdemux.c
@@ -708,14 +708,12 @@ gst_flups_demux_send_event (GstFluPSDemux * demux, GstEvent * event)
GstFluPSStream *stream = demux->streams_found[i];
if (stream) {
- (void) gst_event_ref (event);
-
- if (!gst_pad_push_event (stream->pad, event)) {
- GST_DEBUG_OBJECT (stream, "event %s was not handled correctly",
+ if (!gst_pad_push_event (stream->pad, gst_event_ref (event))) {
+ GST_DEBUG_OBJECT (stream->pad, "%s event was not handled",
GST_EVENT_TYPE_NAME (event));
} else {
/* If at least one push returns TRUE, then we return TRUE. */
- GST_DEBUG_OBJECT (stream, "event %s was handled correctly",
+ GST_DEBUG_OBJECT (stream->pad, "%s event was handled",
GST_EVENT_TYPE_NAME (event));
ret = TRUE;
}