mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +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,7 +973,10 @@ send_fragment_opened_closed_msg (GstSplitMuxSink * splitmux, gboolean opened,
|
|||
running_time = *rtime;
|
||||
}
|
||||
|
||||
g_object_get (sink, "location", &location, NULL);
|
||||
if (g_object_class_find_property (G_OBJECT_GET_CLASS (splitmux->sink),
|
||||
"location") != NULL)
|
||||
g_object_get (sink, "location", &location, NULL);
|
||||
|
||||
|
||||
/* If it's in the middle of a teardown, the reference_ctc might have become
|
||||
* NULL */
|
||||
|
@ -3149,7 +3152,9 @@ set_next_filename (GstSplitMuxSink * splitmux, MqStreamCtx * ctx)
|
|||
|
||||
if (fname) {
|
||||
GST_INFO_OBJECT (splitmux, "Setting file to %s", fname);
|
||||
g_object_set (splitmux->sink, "location", fname, NULL);
|
||||
if (g_object_class_find_property (G_OBJECT_GET_CLASS (splitmux->sink),
|
||||
"location") != NULL)
|
||||
g_object_set (splitmux->sink, "location", fname, NULL);
|
||||
g_free (fname);
|
||||
|
||||
splitmux->fragment_id++;
|
||||
|
|
Loading…
Reference in a new issue