From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 13 Feb 2023 15:57:31 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pRaGr-006JYv-74 for lore@lore.pengutronix.de; Mon, 13 Feb 2023 15:57:31 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pRaGm-0006go-Vb; Mon, 13 Feb 2023 15:57:28 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRaGk-0006gD-PF; Mon, 13 Feb 2023 15:57:26 +0100 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pRaGi-004g5r-UQ; Mon, 13 Feb 2023 15:57:26 +0100 Received: from mfe by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pRaGj-00H50F-Gf; Mon, 13 Feb 2023 15:57:25 +0100 From: Marco Felsch To: oss-tools@pengutronix.de, graphics@pengutronix.de Date: Mon, 13 Feb 2023 15:57:21 +0100 Message-Id: <20230213145723.4065393-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [OSS-Tools] [PATCH 1/3] gstplayer: make use of playbin3 X-BeenThere: oss-tools@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "OSS-Tools" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: oss-tools-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Replace the 'playbin' by the more recent 'playbin3' element. Signed-off-by: Marco Felsch --- plugin/gstplayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/gstplayer.cpp b/plugin/gstplayer.cpp index c0b12df..909843b 100644 --- a/plugin/gstplayer.cpp +++ b/plugin/gstplayer.cpp @@ -408,14 +408,14 @@ void QtGstPlayer::updatePipeline() QString prefix = "gst-pipeline:"; QString source = m_source; - /* default pipeline (playbin) */ + /* default pipeline (playbin3) */ if (source.indexOf(prefix) != 0) { - m_pipeline = gst_element_factory_make("playbin", NULL); + m_pipeline = gst_element_factory_make("playbin3", NULL); g_signal_connect(m_pipeline, "element-setup", G_CALLBACK(setup_element_callback), this); if (!m_pipeline) { - qCWarning(lcGstPlayer, "Failed to create playbin element, \ + qCWarning(lcGstPlayer, "Failed to create playbin3 element, \ is the GStreamer playback plugin installed?"); return; } -- 2.30.2