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
This commit is contained in:
Thiago Santos 2013-11-07 12:35:55 -03:00
parent 7e195cdcdc
commit 805e313cce

View file

@ -183,6 +183,9 @@ gst_hls_sink_init (GstHlsSink * sink)
sink->max_files = DEFAULT_MAX_FILES; sink->max_files = DEFAULT_MAX_FILES;
sink->target_duration = DEFAULT_TARGET_DURATION; 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); gst_hls_sink_reset (sink);
} }