Allows us to request pads after writing header for streamable flv's.
For non-streamable it doesn't make sense to request a new pad after
writing the header, because the headers have been written already and we
can't add the new stream. But for streamable, any clients that connect
after the new pad has been added will be able to see both streams.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/572>
PROP_0,
PROP_STREAMABLE,
PROP_METADATACREATOR,
- PROP_ENCODER
+ PROP_ENCODER,
};
#define DEFAULT_STREAMABLE FALSE
const gchar *name = NULL;
gboolean video;
- if (mux->state != GST_FLV_MUX_STATE_HEADER) {
- GST_WARNING_OBJECT (mux, "Can't request pads after writing header");
+ if (mux->state != GST_FLV_MUX_STATE_HEADER && !mux->streamable) {
+ GST_ELEMENT_WARNING (mux, STREAM, MUX,
+ ("Requested a late stream in a non-streamable file"),
+ ("Stream added after file started and therefore won't be playable"));
return NULL;
}