Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mail.openembedded.org (Postfix) with ESMTP id 19128601D3 for ; Tue, 15 Dec 2015 16:45:59 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id n186so103905640wmn.0 for ; Tue, 15 Dec 2015 08:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=19lo/xxhabj5QPIsuZUMLBExtFJletJcABUhWdOTkqI=; b=SqHfKvgrrltyJ2Sp/HYtC7uUvG3e6m9n5LFnRjc+WquI6H6A5r5j9/fUE28D8fiPed i88Y+3L5yG9BPF/zJ/SYMDgAueG36FOMR2BH4Ou05VsElBDXZSyoSq5AufmED62U5iCE gmLI+rDkCide/Jlq4SOT3J7tvwI1KaKo+ZzzxwE52E1mk/+KAYdEC2X7owMzRbz0b6oy MDtPaUnrup0blNlWoshB7HRvWnF6XT+xCzixgTlYRCoc9hzzep3WD0lCkEZLLik+FrU2 ABUfW0gExqDZFuWFfq28kl0IR5vBB6Y08vRJ4eO0/UN1KnUegVzVpeTBcmXzQHajIe/Y fEIA== X-Received: by 10.194.133.100 with SMTP id pb4mr48502909wjb.133.1450197960187; Tue, 15 Dec 2015 08:46:00 -0800 (PST) Received: from localhost (ip-86-49-34-37.net.upcbroadband.cz. [86.49.34.37]) by smtp.gmail.com with ESMTPSA id 200sm3578822wmn.11.2015.12.15.08.45.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Dec 2015 08:45:58 -0800 (PST) From: Martin Jansa X-Google-Original-From: Martin Jansa Date: Tue, 15 Dec 2015 17:48:06 +0100 To: openembedded-devel@lists.openembedded.org Message-ID: <20151215164806.GC2556@jama> References: <20151215154512.GB2556@jama> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [meta-qt5][PATCH] gstreamer1.0-patch: fixed breaking of 0.1 support X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 16:46:00 -0000 X-Groupsio-MsgNum: 59042 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5G06lTa6Jq83wMTw" Content-Disposition: inline --5G06lTa6Jq83wMTw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 15, 2015 at 06:28:16PM +0200, Gerhard de Clercq wrote: > Hi, >=20 > This was tested only on the fido branch though I don't have a system to t= est if=20 > it still retains gstreamer 1.0 support. The file that was patched is inde= ed not=20 > present in master because from jethro upwards the file becomes very basic= =20 > because the patch was supposedly merged into upstream Qt. I have not mana= ged=20 > to figure out how exactly because it definitely wasn't done as is and I d= on't=20 > really know where to look. I am not sure who did the implementation but I= =20 > believe that if the old patch was blindly followed then the problem might= have=20 > moved upstream. It doesn't apply even in meta-qt5/fido. > The reason the header is disappearing is because I am recreating the whol= e=20 > patch file from my modified git branch for it is all that I know how to d= o. I=20 > have therefore not actually patched the patch file, just recreated it. Did you read: http://lists.openembedded.org/pipermail/openembedded-devel/2015-December/10= 4926.html ? >=20 > --=20 > Regards, > Gerhard de Clercq > On Tuesday 15 Dec 2015 16:45:12 Martin Jansa wrote: > > On Sat, Dec 05, 2015 at 11:49:02AM +0000, Gerhard de Clercq wrote: > > > I have found that the patch applied to qtmultimedia in the Fido branch > > > (and probably those before it) that added support for GStreamer 1.0 b= roke > > > support for GStreamer 0.1 that no-one (except me) actually uses and > > > therefore it went unnoticed. In the newer version, the old patch has > > > apparently been merged upstream, I'm guessing someone should maybe ch= eck > > > if the errors here are not also present there... This is my first mai= ling > > > list patch submission so here's hoping it was done correctly!>=20 > > > --- > > > ...1-Initial-porting-effort-to-GStreamer-1.0.patch | 155 > > > +++++++-------------- 1 file changed, 48 insertions(+), 107 deletion= s(-) > > >=20 > > > diff --git > > > a/recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreame= r-1. > > > 0.patch > > > b/recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreame= r-1. > > > 0.patch index e2a46df..3638881 100644 > > > --- > > > a/recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreame= r-1. > > > 0.patch +++ > > > b/recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreame= r-1. > > > 0.patch @@ -1,66 +1,3 @@ > > > -From 8b306a5a70d431b8e142b3a7efb32d897cb79ab5 Mon Sep 17 00:00:00 20= 01 > > > -From: Yoann Lopes > > > -Date: Thu, 31 Oct 2013 15:06:30 +0100 > > > -Subject: [PATCH] Initial porting effort to GStreamer 1.0. > >=20 > > This headers shouldn't be removed if you use git format-patch. > >=20 > > Also for which meta-qt5 branch this was tested? It doesn't apply for > > master, before applying in fido someone needs to verify if it's needed > > in master, jethro (otherwise people upgrading from fido to jethro could > > be hit by the same issue). > >=20 > > Regards, > >=20 > > > - > > > -Imported from git@github.com:jhodapp/qtmultimedia.git > > > - > > > -Contributions from: > > > -Ilya Smelykh > > > -Jim Hodapp > > > -Sergio Schvezov > > > - > > > -Change-Id: I10fa5e5078efa4564ce833befd417008e26a90a9 > > > -Reviewed-by: Yoann Lopes > > > -(cherry picked from commit d91dac090d92fdbc3a3425e8d969c62e5c79eff9) > > > -Signed-off-by: Martin Jansa > > > - > > > -Conflicts: > > > - src/gsttools/qgstreamervideorenderer.cpp > > > - src/gsttools/qgstreamervideowidget.cpp > > > - src/gsttools/qgstreamervideowindow.cpp > > > - src/plugins/gstreamer/camerabin/camerabinsession.cpp > > > - src/plugins/gstreamer/mediacapture/qgstreamercapturesession.cpp > > > - src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp > > > ---- > > > - config.tests/gstreamer/gstreamer.pro | 11 +- > > > - config.tests/gstreamer_appsrc/gstreamer_appsrc.pro | 13 +- > > > - .../gstreamer_encodingprofiles.pro | 13 +- > > > - .../gstreamer_photography.pro | 15 +- > > > - qtmultimedia.pro | 25 ++- > > > - src/gsttools/gsttools.pro | 22 +-- > > > - src/gsttools/gstvideoconnector.c | 199 > > > +++++++++++++++++++-- - src/gsttools/qgstappsrc.cpp = =20 > > > | 29 ++- > > > - src/gsttools/qgstreameraudioprobecontrol.cpp | 19 +- > > > - src/gsttools/qgstreamerbushelper.cpp | 8 + > > > - src/gsttools/qgstreamervideoprobecontrol.cpp | 9 + > > > - src/gsttools/qgstreamervideorenderer.cpp | 3 +- > > > - src/gsttools/qgstreamervideowidget.cpp | 29 ++- > > > - src/gsttools/qgstreamervideowindow.cpp | 79 +++++++- > > > - src/gsttools/qgstutils.cpp | 27 ++- > > > - src/gsttools/qgstvideobuffer.cpp | 18 +- > > > - src/gsttools/qvideosurfacegstsink.cpp | 136 ++++++++++= +++- > > > - src/multimedia/gsttools_headers/qgstappsrc_p.h | 3 + > > > - .../qgstreameraudioprobecontrol_p.h | 5 +- > > > - .../qgstreamervideoprobecontrol_p.h | 4 + > > > - .../gsttools_headers/qgstreamervideowindow_p.h | 4 + > > > - src/multimedia/gsttools_headers/qgstutils_p.h | 4 + > > > - .../gsttools_headers/qgstvideobuffer_p.h | 3 + > > > - .../gsttools_headers/qvideosurfacegstsink_p.h | 6 +- > > > - .../qgstreameraudiodecoderserviceplugin.cpp | 27 ++- > > > - .../audiodecoder/qgstreameraudiodecodersession.cpp | 33 +++- > > > - .../gstreamer/camerabin/camerabinsession.cpp | 25 +++ > > > - src/plugins/gstreamer/common.pri | 21 ++- > > > - src/plugins/gstreamer/gstreamer.pro | 3 +- > > > - .../mediacapture/qgstreamercapturesession.cpp | 5 + > > > - src/plugins/gstreamer/mediaplayer/mediaplayer.pro | 1 - > > > - .../mediaplayer/qgstreamerplayercontrol.cpp | 2 + > > > - .../mediaplayer/qgstreamerplayerservice.cpp | 9 +- > > > - .../mediaplayer/qgstreamerplayerserviceplugin.cpp | 27 ++- > > > - .../mediaplayer/qgstreamerplayersession.cpp | 154 > > > ++++++++++++++-- > > > - .../mediaplayer/qgstreamerplayersession.h | 9 + > > > - 36 files changed, 871 insertions(+), 129 deletions(-) > > > - > > >=20 > > > diff --git a/config.tests/gstreamer/gstreamer.pro > > > b/config.tests/gstreamer/gstreamer.pro index 02a7e34..6b9843a 100644 > > > --- a/config.tests/gstreamer/gstreamer.pro > > >=20 > > > @@ -245,7 +182,7 @@ index 7c809a7..6b9bf5d 100644 > > >=20 > > > config_linux_v4l: DEFINES +=3D USE_V4L > > > =20 > > > diff --git a/src/gsttools/gstvideoconnector.c > > > b/src/gsttools/gstvideoconnector.c>=20 > > > -index 3ed539e..ed0ed3c 100644 > > > +index 3ed539e..f14e68d 100644 > > >=20 > > > --- a/src/gsttools/gstvideoconnector.c > > > +++ b/src/gsttools/gstvideoconnector.c > > > @@ -59,26 +59,93 @@ GST_STATIC_PAD_TEMPLATE ("src", > > >=20 > > > @@ -486,12 +423,15 @@ index 3ed539e..ed0ed3c 100644 > > >=20 > > > GstVideoConnector *element =3D GST_VIDEO_CONNECTOR (object); > > >=20 > > > -@@ -327,16 +456,23 @@ static gboolean > > > gst_video_connector_new_buffer_probe(GstObject *pad, GstBuffer * +@@ > > > -327,16 +456,27 @@ static gboolean > > > gst_video_connector_new_buffer_probe(GstObject *pad, GstBuffer *>=20 > > > if (element->relinked) > > > =20 > > > GST_LOG_OBJECT(element, "rejected buffer because of new seg= ment > > > request"); > > >=20 > > > -- return !element->relinked; > > > ++#if GST_CHECK_VERSION(1,0,0) > > >=20 > > > + return element->relinked ? GST_PAD_PROBE_DROP : GST_PAD_PROBE_O= K; > > >=20 > > > ++#else > > > + return !element->relinked; > > > ++#endif > > >=20 > > > } > > > =20 > > > - > > >=20 > > > @@ -512,7 +452,7 @@ index 3ed539e..ed0ed3c 100644 > > >=20 > > > element =3D GST_VIDEO_CONNECTOR (gst_pad_get_parent (pad)); > > > =20 > > > do { > > >=20 > > > -@@ -348,20 +484,29 @@ gst_video_connector_chain (GstPad * pad, GstBu= ffer > > > * buf) +@@ -348,20 +488,29 @@ gst_video_connector_chain (GstPad * pad, > > > GstBuffer * buf)>=20 > > > */ > > > while (element->relinked) { > > > =20 > > > element->relinked =3D FALSE; > > >=20 > > > @@ -544,7 +484,7 @@ index 3ed539e..ed0ed3c 100644 > > >=20 > > > GST_DEBUG_OBJECT (element, "Pushing new segment event"); > > > if (!gst_pad_push_event (element->srcpad, ev)) { > > >=20 > > > -@@ -424,8 +569,11 @@ gst_video_connector_change_state (GstElement * > > > element, +@@ -424,8 +573,11 @@ gst_video_connector_change_state > > > (GstElement * element,>=20 > > > GstStateChangeReturn result; > > > =20 > > > connector =3D GST_VIDEO_CONNECTOR(element); > > >=20 > > > @@ -557,7 +497,7 @@ index 3ed539e..ed0ed3c 100644 > > >=20 > > > switch (transition) { > > > =20 > > > case GST_STATE_CHANGE_PAUSED_TO_READY: > > > gst_video_connector_reset (connector); > > >=20 > > > -@@ -440,9 +588,32 @@ gst_video_connector_change_state (GstElement * > > > element, +@@ -440,8 +592,29 @@ gst_video_connector_change_state > > > (GstElement * element,>=20 > > > return result; > > > =20 > > > } > > >=20 > > > @@ -587,12 +527,9 @@ index 3ed539e..ed0ed3c 100644 > > >=20 > > > +static gboolean gst_video_connector_handle_sink_event (GstPad * pad, > > > + GstEvent * e= vent) > > > =20 > > > { > > >=20 > > > -+ (void)parent; > > > -+ > > >=20 > > > if (GST_EVENT_TYPE (event) =3D=3D GST_EVENT_NEWSEGMENT) { > > > =20 > > > GstVideoConnector *element =3D GST_VIDEO_CONNECTOR > > > (gst_pad_get_parent (pad));>=20 > > > - > > > -@@ -453,7 +624,6 @@ gst_video_connector_handle_sink_event (GstPad * = pad, > > > GstEvent * event) +@@ -453,7 +626,6 @@ > > > gst_video_connector_handle_sink_event (GstPad * pad, GstEvent * event= )>=20 > > > gst_event_parse_new_segment_full (event, &update, &rate, &a= rate, > > > &format, > > > =20 > > > &start, &stop, &time); > > >=20 > > > @@ -600,7 +537,7 @@ index 3ed539e..ed0ed3c 100644 > > >=20 > > > GST_LOG_OBJECT (element, > > > =20 > > > "NEWSEGMENT update %d, rate %lf, applied = rate > > > %lf, " > > > "format %d, " "%" G_GINT64_FORMAT " -- %" > > > G_GINT64_FORMAT ", time %" > > >=20 > > > -@@ -461,9 +631,10 @@ gst_video_connector_handle_sink_event (GstPad *= pad, > > > GstEvent * event) +@@ -461,9 +633,10 @@ > > > gst_video_connector_handle_sink_event (GstPad * pad, GstEvent * event= )>=20 > > > gst_segment_set_newsegment_full (&element->segment, update, > > > =20 > > > rate, arate, format, start, > > > stop, time); > > >=20 > > > @@ -666,10 +603,10 @@ index 561a96f..d5e106f 100644 > > >=20 > > > } else { > > > =20 > > > sendEOS(); > > > =20 > > > diff --git a/src/gsttools/qgstreameraudioprobecontrol.cpp > > > b/src/gsttools/qgstreameraudioprobecontrol.cpp>=20 > > > -index 3baca53..be3de3f 100644 > > > +index 3baca53..497fafe 100644 > > >=20 > > > --- a/src/gsttools/qgstreameraudioprobecontrol.cpp > > > +++ b/src/gsttools/qgstreameraudioprobecontrol.cpp > > >=20 > > > -@@ -45,9 +45,14 @@ > > > QGstreamerAudioProbeControl::~QGstreamerAudioProbeControl() +@@ -45,9 > > > +45,15 @@ QGstreamerAudioProbeControl::~QGstreamerAudioProbeControl()= >=20 > > > } > > >=20 > > > @@ -679,13 +616,13 @@ index 3baca53..be3de3f 100644 > > >=20 > > > +#else > > > =20 > > > void QGstreamerAudioProbeControl::bufferProbed(GstBuffer* buffer) > > > { > > >=20 > > > -- GstCaps* caps =3D gst_buffer_get_caps(buffer); > > >=20 > > > + gst_buffer_get_caps(buffer); > > >=20 > > > + GstCaps* caps =3D gst_buffer_get_caps(buffer); > > >=20 > > > +#endif > > > =20 > > > if (!caps) > > > =20 > > > return; > > >=20 > > > -@@ -56,8 +61,20 @@ void > > > QGstreamerAudioProbeControl::bufferProbed(GstBuffer* buffer) +@@ -56,8 > > > +62,20 @@ void QGstreamerAudioProbeControl::bufferProbed(GstBuffer* > > > buffer)>=20 > > > if (!format.isValid()) > > > =20 > > > return; > > >=20 > > > @@ -851,23 +788,24 @@ index b26369a..23674bb 100644 > > >=20 > > > QWidget *QGstreamerVideoWidgetControl::videoWidget() > > > =20 > > > diff --git a/src/gsttools/qgstreamervideowindow.cpp > > > b/src/gsttools/qgstreamervideowindow.cpp>=20 > > > -index a373dcc..587b010 100644 > > > +index a373dcc..4b08332 100644 > > >=20 > > > --- a/src/gsttools/qgstreamervideowindow.cpp > > > +++ b/src/gsttools/qgstreamervideowindow.cpp > > >=20 > > > -@@ -37,8 +37,12 @@ > > > +@@ -37,8 +37,13 @@ > > >=20 > > > #include > > > =20 > > > #include > > >=20 > > > -+#include > > >=20 > > > + > > > +#if !GST_CHECK_VERSION(1,0,0) > > > =20 > > > #include > > > #include > > >=20 > > > ++#else > > > ++#include > > >=20 > > > +#endif > > > =20 > > > QGstreamerVideoWindow::QGstreamerVideoWindow(QObject *parent, const= char > > > *elementName)>=20 > > > -@@ -49,18 +53,25 @@ QGstreamerVideoWindow::QGstreamerVideoWindow(QOb= ject > > > *parent, const char *elemen +@@ -49,18 +54,25 @@ > > > QGstreamerVideoWindow::QGstreamerVideoWindow(QObject *parent, const c= har > > > *elemen>=20 > > > , m_fullScreen(false) > > > , m_colorKey(QColor::Invalid) > > > =20 > > > { > > >=20 > > > @@ -895,7 +833,7 @@ index a373dcc..587b010 100644 > > >=20 > > > } > > > =20 > > > QGstreamerVideoWindow::~QGstreamerVideoWindow() > > >=20 > > > -@@ -82,11 +93,15 @@ void QGstreamerVideoWindow::setWinId(WId id) > > > +@@ -82,11 +94,15 @@ void QGstreamerVideoWindow::setWinId(WId id) > > >=20 > > > WId oldId =3D m_windowId; > > > =20 > > > m_windowId =3D id; > > >=20 > > > @@ -913,7 +851,7 @@ index a373dcc..587b010 100644 > > >=20 > > > if (!oldId) > > > =20 > > > emit readyChanged(true); > > >=20 > > > -@@ -97,7 +112,20 @@ void QGstreamerVideoWindow::setWinId(WId id) > > > +@@ -97,7 +113,20 @@ void QGstreamerVideoWindow::setWinId(WId id) > > >=20 > > > bool QGstreamerVideoWindow::processSyncMessage(const QGstreamerMess= age > > > &message) { > > > =20 > > > GstMessage* gm =3D message.rawMessage(); > > >=20 > > > @@ -934,7 +872,7 @@ index a373dcc..587b010 100644 > > >=20 > > > if ((GST_MESSAGE_TYPE(gm) =3D=3D GST_MESSAGE_ELEMENT) && > > > =20 > > > gst_structure_has_name(gm->structure, "prepare-xwindow-= id") > > > && > > > m_videoSink && GST_IS_X_OVERLAY(m_videoSink)) { > > >=20 > > > -@@ -110,7 +138,7 @@ bool QGstreamerVideoWindow::processSyncMessage(c= onst > > > QGstreamerMessage &message) +@@ -110,7 +139,7 @@ bool > > > QGstreamerVideoWindow::processSyncMessage(const QGstreamerMessage > > > &message)>=20 > > > return true; > > > =20 > > > } > > >=20 > > > @@ -943,7 +881,7 @@ index a373dcc..587b010 100644 > > >=20 > > > return false; > > > =20 > > > } > > >=20 > > > -@@ -122,7 +150,19 @@ QRect QGstreamerVideoWindow::displayRect() const > > > +@@ -122,7 +151,19 @@ QRect QGstreamerVideoWindow::displayRect() const > > >=20 > > > void QGstreamerVideoWindow::setDisplayRect(const QRect &rect) > > > { > > > =20 > > > m_displayRect =3D rect; > > >=20 > > > @@ -964,7 +902,7 @@ index a373dcc..587b010 100644 > > >=20 > > > if (m_videoSink && GST_IS_X_OVERLAY(m_videoSink)) { > > > =20 > > > #if GST_VERSION_MICRO >=3D 29 > > > =20 > > > if (m_displayRect.isEmpty()) > > >=20 > > > -@@ -136,6 +176,7 @@ void QGstreamerVideoWindow::setDisplayRect(const > > > QRect &rect) +@@ -136,6 +177,7 @@ void > > > QGstreamerVideoWindow::setDisplayRect(const QRect &rect)>=20 > > > repaint(); > > > =20 > > > #endif > > > =20 > > > } > > >=20 > > > @@ -972,7 +910,7 @@ index a373dcc..587b010 100644 > > >=20 > > > } > > > =20 > > > Qt::AspectRatioMode QGstreamerVideoWindow::aspectRatioMode() const > > >=20 > > > -@@ -157,6 +198,16 @@ void > > > QGstreamerVideoWindow::setAspectRatioMode(Qt::AspectRatioMode mode) += @@ > > > -157,6 +199,16 @@ void > > > QGstreamerVideoWindow::setAspectRatioMode(Qt::AspectRatioMode mode)>= =20 > > > void QGstreamerVideoWindow::repaint() > > > { > > >=20 > > > @@ -989,7 +927,7 @@ index a373dcc..587b010 100644 > > >=20 > > > if (m_videoSink && GST_IS_X_OVERLAY(m_videoSink)) { > > > =20 > > > //don't call gst_x_overlay_expose if the sink is in null st= ate > > > GstState state =3D GST_STATE_NULL; > > >=20 > > > -@@ -165,6 +216,7 @@ void QGstreamerVideoWindow::repaint() > > > +@@ -165,6 +217,7 @@ void QGstreamerVideoWindow::repaint() > > >=20 > > > gst_x_overlay_expose(GST_X_OVERLAY(m_videoSink)); > > > =20 > > > } > > > =20 > > > } > > >=20 > > > @@ -997,7 +935,7 @@ index a373dcc..587b010 100644 > > >=20 > > > } > > > =20 > > > QColor QGstreamerVideoWindow::colorKey() const > > >=20 > > > -@@ -296,11 +348,22 @@ QSize QGstreamerVideoWindow::nativeSize() const > > > +@@ -296,11 +349,22 @@ QSize QGstreamerVideoWindow::nativeSize() const > > >=20 > > > return m_nativeSize; > > > =20 > > > } > > >=20 > > > @@ -1020,7 +958,7 @@ index a373dcc..587b010 100644 > > >=20 > > > } > > > =20 > > > void QGstreamerVideoWindow::updateNativeVideoSize() > > >=20 > > > -@@ -311,7 +374,11 @@ void QGstreamerVideoWindow::updateNativeVideoSi= ze() > > > +@@ -311,7 +375,11 @@ void QGstreamerVideoWindow::updateNativeVideoSi= ze() > > >=20 > > > if (m_videoSink) { > > > =20 > > > //find video native size to update video widget size hint > > > GstPad *pad =3D gst_element_get_static_pad(m_videoSink,"sin= k"); > > >=20 > > > @@ -1561,10 +1499,10 @@ index 11b305d..01935f7 100644 > > >=20 > > > static GstFlowReturn buffer_alloc( > > > =20 > > > diff --git > > > a/src/plugins/gstreamer/audiodecoder/qgstreameraudiodecoderservicepl= ugin > > > .cpp > > > b/src/plugins/gstreamer/audiodecoder/qgstreameraudiodecoderservicepl= ugin > > > .cpp>=20 > > > -index 3098aab..9c54663 100644 > > > +index 3098aab..6aa8c89 100644 > > >=20 > > > --- > > > a/src/plugins/gstreamer/audiodecoder/qgstreameraudiodecoderservicepl= ugin > > > .cpp +++ > > > b/src/plugins/gstreamer/audiodecoder/qgstreameraudiodecoderservicepl= ugin > > > .cpp>=20 > > > -@@ -74,29 +74,42 @@ void > > > QGstreamerAudioDecoderServicePlugin::updateSupportedMimeTypes() const= +@@ > > > -74,29 +74,46 @@ void > > > QGstreamerAudioDecoderServicePlugin::updateSupportedMimeTypes() const= >=20 > > > gst_init(NULL, NULL); > > > =20 > > > GList *plugins, *orig_plugins; > > >=20 > > > @@ -1583,14 +1521,17 @@ index 3098aab..9c54663 100644 > > >=20 > > > +#if GST_CHECK_VERSION(1,0,0) > > > + if (GST_OBJECT_FLAG_IS_SET(plugin, GST_PLUGIN_FLAG_BLACKLIS= TED)) > > > + continue; > > >=20 > > > ++ > > > ++ GstRegistry *registry =3D gst_registry_get(); > > >=20 > > > +#else > > > =20 > > > if (plugin->flags & (1<<1)) //GST_PLUGIN_FLAG_BLACKLISTED > > > =20 > > > continue; > > >=20 > > > -- > > > + > > >=20 > > > - orig_features =3D features =3D > > > gst_registry_get_feature_list_by_plugin(gst_registry_get_default (),= - =20 > > > = =20 > > > plugin->desc.name);>=20 > > > ++ GstRegistry *registry =3D gst_registry_get_default(); > > >=20 > > > +#endif > > >=20 > > > -+ orig_features =3D features =3D > > > gst_registry_get_feature_list_by_plugin(gst_registry_get (), ++ = =20 > > > orig_features =3D features =3D > > > gst_registry_get_feature_list_by_plugin(registry,>=20 > > > + = =20 > > > gst_plugin_get_name(plugin));> =20 > > > while (features) { > > > =20 > > > if (!G_UNLIKELY(features->data =3D=3D NULL)) { > > >=20 > > > @@ -1889,7 +1830,7 @@ index ddc828e..00bee36 100644 > > >=20 > > > m_videoRenderer =3D new QGstreamerVideoRenderer(this); > > > =20 > > > #endif > > > =20 > > > diff --git > > > a/src/plugins/gstreamer/mediaplayer/qgstreamerplayerserviceplugin.cpp > > > b/src/plugins/gstreamer/mediaplayer/qgstreamerplayerserviceplugin.cp= p>=20 > > > -index 7d20b6d..bf2f9f8 100644 > > > +index 7d20b6d..ea804af 100644 > > >=20 > > > --- a/src/plugins/gstreamer/mediaplayer/qgstreamerplayerserviceplugi= n.cpp > > > +++ b/src/plugins/gstreamer/mediaplayer/qgstreamerplayerserviceplugi= n.cpp > > > @@ -87,7 +87,11 @@ void > > > QGstreamerPlayerServicePlugin::updateSupportedMimeTypes() const>=20 > > > @@ -1904,21 +1845,25 @@ index 7d20b6d..bf2f9f8 100644 > > >=20 > > > while (plugins) { > > > =20 > > > GList *features, *orig_features; > > >=20 > > > -@@ -95,22 +99,33 @@ void > > > QGstreamerPlayerServicePlugin::updateSupportedMimeTypes() const +@@ > > > -95,22 +99,37 @@ void > > > QGstreamerPlayerServicePlugin::updateSupportedMimeTypes() const>=20 > > > GstPlugin *plugin =3D (GstPlugin *) (plugins->data); > > > plugins =3D g_list_next (plugins); > > > =20 > > > +#if GST_CHECK_VERSION(1,0,0) > > > + if (GST_OBJECT_FLAG_IS_SET(plugin, GST_PLUGIN_FLAG_BLACKLIS= TED)) > > >=20 > > > -+ continue; > > > ++ continue; > > > ++ > > > ++ GstRegistry *registry =3D gst_registry_get(); > > >=20 > > > +#else > > > =20 > > > if (plugin->flags & (1<<1)) //GST_PLUGIN_FLAG_BLACKLISTED > > > =20 > > > continue; > > >=20 > > > -+#endif > > >=20 > > > - orig_features =3D features =3D > > > gst_registry_get_feature_list_by_plugin(gst_registry_get_default (),= - =20 > > > = =20 > > > plugin->desc.name);>=20 > > > -+ orig_features =3D features =3D > > > gst_registry_get_feature_list_by_plugin(gst_registry_get(), ++ =20 > > > GstRegistry *registry =3D gst_registry_get_default(); > > > ++#endif > > > ++ > > > ++ orig_features =3D features =3D > > > gst_registry_get_feature_list_by_plugin(registry,>=20 > > > + = =20 > > > gst_plugin_get_name(plugin));> =20 > > > while (features) { > > > =20 > > > if (!G_UNLIKELY(features->data =3D=3D NULL)) { > > >=20 > > > @@ -1945,7 +1890,7 @@ index 7d20b6d..bf2f9f8 100644 > > >=20 > > > GstStaticPadTemplate *padtemplate =3D > > > (GstStaticPadTemplate*)(pads->data); > > > pads =3D g_list_next (pads); > > > =20 > > > diff --git > > > a/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp > > > b/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp>=20 > > > -index 15924a6..8013d0d 100644 > > > +index 15924a6..f77220a 100644 > > >=20 > > > --- a/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp > > > +++ b/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp > > > @@ -85,6 +85,16 @@ typedef enum { > > >=20 > > > @@ -2204,11 +2149,10 @@ index 15924a6..8013d0d 100644 > > >=20 > > > } > > > =20 > > > //listen for queue2 element added to uridecodebin/decodebin= 2 as > > > well. > > >=20 > > > -@@ -1727,7 +1798,27 @@ void > > > QGstreamerPlayerSession::removeProbe(QGstreamerVideoProbeControl* pro= be) > > > +@@ -1727,6 +1798,26 @@ void > > > QGstreamerPlayerSession::removeProbe(QGstreamerVideoProbeControl* pro= be)>=20 > > > // Assume user releases any outstanding references to video fra= mes. > > > =20 > > > } > > >=20 > > > --gboolean QGstreamerPlayerSession::padVideoBufferProbe(GstPad *pad, > > > GstBuffer *buffer, gpointer user_data)>=20 > > > +#if GST_CHECK_VERSION(1,0,0) > > > +GstPadProbeReturn QGstreamerPlayerSession::padVideoBufferProbe(GstP= ad > > > *pad, GstPadProbeInfo *info, gpointer user_data) +{ > > >=20 > > > @@ -2229,10 +2173,9 @@ index 15924a6..8013d0d 100644 > > >=20 > > > + > > > +#else > > > + > > >=20 > > > -+static gboolean QGstreamerPlayerSession::padVideoBufferProbe(GstPad > > > *pad, GstBuffer *buffer, gpointer user_data) + gboolean > > > QGstreamerPlayerSession::padVideoBufferProbe(GstPad *pad, GstBuffer > > > *buffer, gpointer user_data)>=20 > > > { > > > =20 > > > Q_UNUSED(pad); > > >=20 > > > - > > >=20 > > > @@ -1742,6 +1833,7 @@ gboolean > > > QGstreamerPlayerSession::padVideoBufferProbe(GstPad *pad, GstBuffer = *bu> =20 > > > return TRUE; > > >=20 > > > @@ -2364,6 +2307,4 @@ index f2e760a..50bda3d 100644 > > >=20 > > > }; > > > =20 > > > QT_END_NAMESPACE > > >=20 > > > --- > > > -2.3.5 >=20 > --=20 > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel --=20 Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com --5G06lTa6Jq83wMTw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlZwREUACgkQN1Ujt2V2gBx92ACeLgPY0v8kN5uP82z6UDeits2X zo8AnROoO0nuvK3r2DXxeG9st+oBGMvJ =4pbT -----END PGP SIGNATURE----- --5G06lTa6Jq83wMTw--