mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
splitmuxsink: add fakesink support
fakesink does not support "location" property and was generating a warning.
This commit is contained in:
parent
b4b79a211f
commit
9dc1a32d5a
1 changed files with 7 additions and 2 deletions
|
@ -973,8 +973,11 @@ send_fragment_opened_closed_msg (GstSplitMuxSink * splitmux, gboolean opened,
|
||||||
running_time = *rtime;
|
running_time = *rtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_object_class_find_property (G_OBJECT_GET_CLASS (splitmux->sink),
|
||||||
|
"location") != NULL)
|
||||||
g_object_get (sink, "location", &location, NULL);
|
g_object_get (sink, "location", &location, NULL);
|
||||||
|
|
||||||
|
|
||||||
/* If it's in the middle of a teardown, the reference_ctc might have become
|
/* If it's in the middle of a teardown, the reference_ctc might have become
|
||||||
* NULL */
|
* NULL */
|
||||||
if (splitmux->reference_ctx) {
|
if (splitmux->reference_ctx) {
|
||||||
|
@ -3149,6 +3152,8 @@ set_next_filename (GstSplitMuxSink * splitmux, MqStreamCtx * ctx)
|
||||||
|
|
||||||
if (fname) {
|
if (fname) {
|
||||||
GST_INFO_OBJECT (splitmux, "Setting file to %s", fname);
|
GST_INFO_OBJECT (splitmux, "Setting file to %s", fname);
|
||||||
|
if (g_object_class_find_property (G_OBJECT_GET_CLASS (splitmux->sink),
|
||||||
|
"location") != NULL)
|
||||||
g_object_set (splitmux->sink, "location", fname, NULL);
|
g_object_set (splitmux->sink, "location", fname, NULL);
|
||||||
g_free (fname);
|
g_free (fname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue