hlssink: don't forward multifilesink messages to application
authorVictor Gottardi <vgottardi@hotmail.com>
Thu, 6 Dec 2012 16:55:45 +0000 (11:55 -0500)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 6 Jan 2013 22:53:11 +0000 (22:53 +0000)
These messages are usually only needed internally.

https://bugzilla.gnome.org/show_bug.cgi?id=689822

gst/hls/gsthlssink.c

index dcda338..733152b 100644 (file)
@@ -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