From 21477d37e29477dbc63902f4277ab76014447d5a Mon Sep 17 00:00:00 2001 From: Victor Gottardi Date: Thu, 6 Dec 2012 11:55:45 -0500 Subject: [PATCH] hlssink: don't forward multifilesink messages to application These messages are usually only needed internally. https://bugzilla.gnome.org/show_bug.cgi?id=689822 --- gst/hls/gsthlssink.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gst/hls/gsthlssink.c b/gst/hls/gsthlssink.c index dcda338..733152b 100644 --- a/gst/hls/gsthlssink.c +++ b/gst/hls/gsthlssink.c @@ -293,13 +293,20 @@ gst_hls_sink_handle_message (GstBin * bin, GstMessage * message) */ sink->waiting_fku = FALSE; schedule_next_key_unit (sink); + + /* multifilesink is an internal implementation detail. If applications + * need a notification, we should probably do our own message */ + GST_DEBUG_OBJECT (bin, "dropping message %" GST_PTR_FORMAT, message); + gst_message_unref (message); + message = NULL; break; } default: break; } - GST_BIN_CLASS (parent_class)->handle_message (bin, message); + if (message) + GST_BIN_CLASS (parent_class)->handle_message (bin, message); } static GstStateChangeReturn -- 2.7.4