launcher: Switch to fake{audio,video}sink

Simplifies the code a bit, though introducing runtime dependency on -bad.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/254>
This commit is contained in:
Philippe Normand 2021-05-20 16:45:43 +01:00
parent a5a590ba17
commit df2cb6104a

View file

@ -1007,13 +1007,10 @@ _create_pipeline (GESLauncher * self, const gchar * serialized_timeline)
* our timeline in. */
if (opts->mute) {
GstElement *sink = gst_element_factory_make ("fakesink", NULL);
g_object_set (sink, "sync", TRUE, NULL);
GstElement *sink = gst_element_factory_make ("fakeaudiosink", NULL);
ges_pipeline_preview_set_audio_sink (self->priv->pipeline, sink);
sink = gst_element_factory_make ("fakesink", NULL);
g_object_set (sink, "sync", TRUE, NULL);
sink = gst_element_factory_make ("fakevideosink", NULL);
ges_pipeline_preview_set_video_sink (self->priv->pipeline, sink);
}