summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2021-07-08 02:22:20 +0200
committerTim-Philipp Müller <tim@centricular.com>2021-09-06 17:16:07 +0100
commit93ee65f05769ccb10fc0bf970a99a4ce01720919 (patch)
treee870567b6d5a9c1856726525b379d7c63954330b
parent1e8d018ba2f0f6bc90a61ac59dd196a356ab4268 (diff)
downloadgstreamer-plugins-good-93ee65f05769ccb10fc0bf970a99a4ce01720919.tar.gz
splitmuxsink: always use factory property when set
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1074>
-rw-r--r--gst/multifile/gstsplitmuxsink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c
index 093f5a501..d8e86c086 100644
--- a/gst/multifile/gstsplitmuxsink.c
+++ b/gst/multifile/gstsplitmuxsink.c
@@ -3311,7 +3311,9 @@ create_muxer (GstSplitMuxSink * splitmux)
if ((!splitmux->async_finalize && provided_muxer == NULL) ||
(splitmux->async_finalize && splitmux->muxer_factory == NULL)) {
if ((splitmux->muxer =
- create_element (splitmux, DEFAULT_MUXER, "muxer", FALSE)) == NULL)
+ create_element (splitmux,
+ splitmux->muxer_factory ? splitmux->
+ muxer_factory : DEFAULT_MUXER, "muxer", FALSE)) == NULL)
goto fail;
} else if (splitmux->async_finalize) {
if ((splitmux->muxer =