From 805e313cce90f69580704e3e604481ab416d209e Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 7 Nov 2013 12:35:55 -0300 Subject: [PATCH] hlssink: make sure it is handled as a sink It only gets the sink flag set when it adds the multifilesink, that happens in null->ready and it might be too late. Set the flag explicitly on the constructor. https://bugzilla.gnome.org/show_bug.cgi?id=711086 --- ext/hls/gsthlssink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/hls/gsthlssink.c b/ext/hls/gsthlssink.c index 733152b94f..438b70db95 100644 --- a/ext/hls/gsthlssink.c +++ b/ext/hls/gsthlssink.c @@ -183,6 +183,9 @@ gst_hls_sink_init (GstHlsSink * sink) sink->max_files = DEFAULT_MAX_FILES; sink->target_duration = DEFAULT_TARGET_DURATION; + /* haven't added a sink yet, make it is detected as a sink meanwhile */ + GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_FLAG_SINK); + gst_hls_sink_reset (sink); }