mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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:
parent
7e195cdcdc
commit
805e313cce
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue