mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
mpegpsdemux: minor clean-up
This commit is contained in:
parent
e43d1959a8
commit
310a633afb
1 changed files with 3 additions and 5 deletions
|
@ -708,14 +708,12 @@ gst_flups_demux_send_event (GstFluPSDemux * demux, GstEvent * event)
|
||||||
GstFluPSStream *stream = demux->streams_found[i];
|
GstFluPSStream *stream = demux->streams_found[i];
|
||||||
|
|
||||||
if (stream) {
|
if (stream) {
|
||||||
(void) gst_event_ref (event);
|
if (!gst_pad_push_event (stream->pad, gst_event_ref (event))) {
|
||||||
|
GST_DEBUG_OBJECT (stream->pad, "%s event was not handled",
|
||||||
if (!gst_pad_push_event (stream->pad, event)) {
|
|
||||||
GST_DEBUG_OBJECT (stream, "event %s was not handled correctly",
|
|
||||||
GST_EVENT_TYPE_NAME (event));
|
GST_EVENT_TYPE_NAME (event));
|
||||||
} else {
|
} else {
|
||||||
/* If at least one push returns TRUE, then we return TRUE. */
|
/* 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));
|
GST_EVENT_TYPE_NAME (event));
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue