diff options
Diffstat (limited to 'recipes-qt/qt5/qtmultimedia-git/0001-Initial-porting-effort-to-GStreamer-1.0.patch')
| -rw-r--r-- | recipes-qt/qt5/qtmultimedia-git/0001-Initial-porting-effort-to-GStreamer-1.0.patch | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/recipes-qt/qt5/qtmultimedia-git/0001-Initial-porting-effort-to-GStreamer-1.0.patch b/recipes-qt/qt5/qtmultimedia-git/0001-Initial-porting-effort-to-GStreamer-1.0.patch index ab819f26..4020471e 100644 --- a/recipes-qt/qt5/qtmultimedia-git/0001-Initial-porting-effort-to-GStreamer-1.0.patch +++ b/recipes-qt/qt5/qtmultimedia-git/0001-Initial-porting-effort-to-GStreamer-1.0.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 4af76880d63e8d392eb8add8b8999e3f5031675a Mon Sep 17 00:00:00 2001 | 1 | From a42d29588f9c65d8c480fd9fbcbbd0606f01170f Mon Sep 17 00:00:00 2001 |
| 2 | From: Yoann Lopes <yoann.lopes@digia.com> | 2 | From: Yoann Lopes <yoann.lopes@digia.com> |
| 3 | Date: Thu, 31 Oct 2013 15:06:30 +0100 | 3 | Date: Thu, 31 Oct 2013 15:06:30 +0100 |
| 4 | Subject: [PATCH 1/2] Initial porting effort to GStreamer 1.0. | 4 | Subject: [PATCH] Initial porting effort to GStreamer 1.0. |
| 5 | 5 | ||
| 6 | Imported from git@github.com:jhodapp/qtmultimedia.git | 6 | Imported from git@github.com:jhodapp/qtmultimedia.git |
| 7 | 7 | ||
| @@ -149,13 +149,13 @@ index 6b530cb..975991f 100644 | |||
| 149 | +LIBS += -lgstphotography-$$GST_VERSION | 149 | +LIBS += -lgstphotography-$$GST_VERSION |
| 150 | 150 | ||
| 151 | diff --git a/qtmultimedia.pro b/qtmultimedia.pro | 151 | diff --git a/qtmultimedia.pro b/qtmultimedia.pro |
| 152 | index 3cec526..109dd81 100644 | 152 | index cf97e64..d94d6a2 100644 |
| 153 | --- a/qtmultimedia.pro | 153 | --- a/qtmultimedia.pro |
| 154 | +++ b/qtmultimedia.pro | 154 | +++ b/qtmultimedia.pro |
| 155 | @@ -17,11 +17,26 @@ win32 { | 155 | @@ -17,11 +17,26 @@ win32 { |
| 156 | } else { | 156 | } else { |
| 157 | qtCompileTest(alsa) | 157 | contains(QT_CONFIG, alsa):qtCompileTest(alsa) |
| 158 | qtCompileTest(pulseaudio) | 158 | contains(QT_CONFIG, pulseaudio):qtCompileTest(pulseaudio) |
| 159 | - qtCompileTest(gstreamer) { | 159 | - qtCompileTest(gstreamer) { |
| 160 | - qtCompileTest(gstreamer_photography) | 160 | - qtCompileTest(gstreamer_photography) |
| 161 | - qtCompileTest(gstreamer_encodingprofiles) | 161 | - qtCompileTest(gstreamer_encodingprofiles) |
| @@ -772,7 +772,7 @@ index 2b66f76..804dce9 100644 | |||
| 772 | #include <gst/gst.h> | 772 | #include <gst/gst.h> |
| 773 | 773 | ||
| 774 | diff --git a/src/gsttools/qgstreamervideowidget.cpp b/src/gsttools/qgstreamervideowidget.cpp | 774 | diff --git a/src/gsttools/qgstreamervideowidget.cpp b/src/gsttools/qgstreamervideowidget.cpp |
| 775 | index aa2e2a3..14c1f04 100644 | 775 | index 4960187..230fbf4 100644 |
| 776 | --- a/src/gsttools/qgstreamervideowidget.cpp | 776 | --- a/src/gsttools/qgstreamervideowidget.cpp |
| 777 | +++ b/src/gsttools/qgstreamervideowidget.cpp | 777 | +++ b/src/gsttools/qgstreamervideowidget.cpp |
| 778 | @@ -40,8 +40,13 @@ | 778 | @@ -40,8 +40,13 @@ |
| @@ -789,7 +789,7 @@ index aa2e2a3..14c1f04 100644 | |||
| 789 | 789 | ||
| 790 | QT_BEGIN_NAMESPACE | 790 | QT_BEGIN_NAMESPACE |
| 791 | 791 | ||
| 792 | @@ -169,9 +174,13 @@ bool QGstreamerVideoWidgetControl::processSyncMessage(const QGstreamerMessage &m | 792 | @@ -164,9 +169,13 @@ bool QGstreamerVideoWidgetControl::processSyncMessage(const QGstreamerMessage &m |
| 793 | { | 793 | { |
| 794 | GstMessage* gm = message.rawMessage(); | 794 | GstMessage* gm = message.rawMessage(); |
| 795 | 795 | ||
| @@ -804,7 +804,7 @@ index aa2e2a3..14c1f04 100644 | |||
| 804 | setOverlay(); | 804 | setOverlay(); |
| 805 | QMetaObject::invokeMethod(this, "updateNativeVideoSize", Qt::QueuedConnection); | 805 | QMetaObject::invokeMethod(this, "updateNativeVideoSize", Qt::QueuedConnection); |
| 806 | return true; | 806 | return true; |
| 807 | @@ -199,18 +208,29 @@ bool QGstreamerVideoWidgetControl::processBusMessage(const QGstreamerMessage &me | 807 | @@ -194,18 +203,29 @@ bool QGstreamerVideoWidgetControl::processBusMessage(const QGstreamerMessage &me |
| 808 | 808 | ||
| 809 | void QGstreamerVideoWidgetControl::setOverlay() | 809 | void QGstreamerVideoWidgetControl::setOverlay() |
| 810 | { | 810 | { |
| @@ -835,7 +835,7 @@ index aa2e2a3..14c1f04 100644 | |||
| 835 | 835 | ||
| 836 | if (caps) { | 836 | if (caps) { |
| 837 | m_widget->setNativeSize(QGstUtils::capsCorrectedResolution(caps)); | 837 | m_widget->setNativeSize(QGstUtils::capsCorrectedResolution(caps)); |
| 838 | @@ -225,8 +245,13 @@ void QGstreamerVideoWidgetControl::updateNativeVideoSize() | 838 | @@ -220,8 +240,13 @@ void QGstreamerVideoWidgetControl::updateNativeVideoSize() |
| 839 | 839 | ||
| 840 | void QGstreamerVideoWidgetControl::windowExposed() | 840 | void QGstreamerVideoWidgetControl::windowExposed() |
| 841 | { | 841 | { |
| @@ -1032,10 +1032,10 @@ index a373dcc..587b010 100644 | |||
| 1032 | 1032 | ||
| 1033 | if (caps) { | 1033 | if (caps) { |
| 1034 | diff --git a/src/gsttools/qgstutils.cpp b/src/gsttools/qgstutils.cpp | 1034 | diff --git a/src/gsttools/qgstutils.cpp b/src/gsttools/qgstutils.cpp |
| 1035 | index 556fc03..5ea2c59 100644 | 1035 | index 465f439..cb26137 100644 |
| 1036 | --- a/src/gsttools/qgstutils.cpp | 1036 | --- a/src/gsttools/qgstutils.cpp |
| 1037 | +++ b/src/gsttools/qgstutils.cpp | 1037 | +++ b/src/gsttools/qgstutils.cpp |
| 1038 | @@ -89,8 +89,13 @@ static void addTagToMap(const GstTagList *list, | 1038 | @@ -90,8 +90,13 @@ static void addTagToMap(const GstTagList *list, |
| 1039 | break; | 1039 | break; |
| 1040 | default: | 1040 | default: |
| 1041 | // GST_TYPE_DATE is a function, not a constant, so pull it out of the switch | 1041 | // GST_TYPE_DATE is a function, not a constant, so pull it out of the switch |
| @@ -1049,7 +1049,7 @@ index 556fc03..5ea2c59 100644 | |||
| 1049 | if (g_date_valid(date)) { | 1049 | if (g_date_valid(date)) { |
| 1050 | int year = g_date_get_year(date); | 1050 | int year = g_date_get_year(date); |
| 1051 | int month = g_date_get_month(date); | 1051 | int month = g_date_get_month(date); |
| 1052 | @@ -254,6 +259,24 @@ QAudioFormat QGstUtils::audioFormatForCaps(const GstCaps *caps) | 1052 | @@ -255,6 +260,24 @@ QAudioFormat QGstUtils::audioFormatForCaps(const GstCaps *caps) |
| 1053 | } | 1053 | } |
| 1054 | 1054 | ||
| 1055 | 1055 | ||
| @@ -1074,7 +1074,7 @@ index 556fc03..5ea2c59 100644 | |||
| 1074 | /*! | 1074 | /*! |
| 1075 | Returns audio format for a buffer. | 1075 | Returns audio format for a buffer. |
| 1076 | If the buffer doesn't have a valid audio format, an empty QAudioFormat is returned. | 1076 | If the buffer doesn't have a valid audio format, an empty QAudioFormat is returned. |
| 1077 | @@ -269,7 +292,7 @@ QAudioFormat QGstUtils::audioFormatForBuffer(GstBuffer *buffer) | 1077 | @@ -270,7 +293,7 @@ QAudioFormat QGstUtils::audioFormatForBuffer(GstBuffer *buffer) |
| 1078 | gst_caps_unref(caps); | 1078 | gst_caps_unref(caps); |
| 1079 | return format; | 1079 | return format; |
| 1080 | } | 1080 | } |
| @@ -1083,7 +1083,7 @@ index 556fc03..5ea2c59 100644 | |||
| 1083 | 1083 | ||
| 1084 | /*! | 1084 | /*! |
| 1085 | Builds GstCaps for an audio format. | 1085 | Builds GstCaps for an audio format. |
| 1086 | @@ -579,7 +602,7 @@ QByteArray QGstUtils::cameraDriver(const QString &device, GstElementFactory *fac | 1086 | @@ -588,7 +611,7 @@ QByteArray QGstUtils::cameraDriver(const QString &device, GstElementFactory *fac |
| 1087 | 1087 | ||
| 1088 | void qt_gst_object_ref_sink(gpointer object) | 1088 | void qt_gst_object_ref_sink(gpointer object) |
| 1089 | { | 1089 | { |
| @@ -1689,10 +1689,10 @@ index f944a60..72d1cf1 100644 | |||
| 1689 | if (m_duration != duration) { | 1689 | if (m_duration != duration) { |
| 1690 | m_duration = duration; | 1690 | m_duration = duration; |
| 1691 | diff --git a/src/plugins/gstreamer/camerabin/camerabinsession.cpp b/src/plugins/gstreamer/camerabin/camerabinsession.cpp | 1691 | diff --git a/src/plugins/gstreamer/camerabin/camerabinsession.cpp b/src/plugins/gstreamer/camerabin/camerabinsession.cpp |
| 1692 | index a4038c5..9d1fdfa 100644 | 1692 | index 1ed663b..e0c6b50 100644 |
| 1693 | --- a/src/plugins/gstreamer/camerabin/camerabinsession.cpp | 1693 | --- a/src/plugins/gstreamer/camerabin/camerabinsession.cpp |
| 1694 | +++ b/src/plugins/gstreamer/camerabin/camerabinsession.cpp | 1694 | +++ b/src/plugins/gstreamer/camerabin/camerabinsession.cpp |
| 1695 | @@ -760,7 +760,11 @@ qint64 CameraBinSession::duration() const | 1695 | @@ -796,7 +796,11 @@ qint64 CameraBinSession::duration() const |
| 1696 | if (fileSink) { | 1696 | if (fileSink) { |
| 1697 | GstFormat format = GST_FORMAT_TIME; | 1697 | GstFormat format = GST_FORMAT_TIME; |
| 1698 | gint64 duration = 0; | 1698 | gint64 duration = 0; |
| @@ -1704,7 +1704,7 @@ index a4038c5..9d1fdfa 100644 | |||
| 1704 | gst_object_unref(GST_OBJECT(fileSink)); | 1704 | gst_object_unref(GST_OBJECT(fileSink)); |
| 1705 | if (ret) | 1705 | if (ret) |
| 1706 | return duration / 1000000; | 1706 | return duration / 1000000; |
| 1707 | @@ -797,8 +801,13 @@ void CameraBinSession::setMetaData(const QMap<QByteArray, QVariant> &data) | 1707 | @@ -833,8 +837,13 @@ void CameraBinSession::setMetaData(const QMap<QByteArray, QVariant> &data) |
| 1708 | 1708 | ||
| 1709 | if (m_camerabin) { | 1709 | if (m_camerabin) { |
| 1710 | GstIterator *elements = gst_bin_iterate_all_by_interface(GST_BIN(m_camerabin), GST_TYPE_TAG_SETTER); | 1710 | GstIterator *elements = gst_bin_iterate_all_by_interface(GST_BIN(m_camerabin), GST_TYPE_TAG_SETTER); |
| @@ -1718,7 +1718,7 @@ index a4038c5..9d1fdfa 100644 | |||
| 1718 | gst_tag_setter_reset_tags(GST_TAG_SETTER(element)); | 1718 | gst_tag_setter_reset_tags(GST_TAG_SETTER(element)); |
| 1719 | 1719 | ||
| 1720 | QMapIterator<QByteArray, QVariant> it(data); | 1720 | QMapIterator<QByteArray, QVariant> it(data); |
| 1721 | @@ -859,7 +868,11 @@ bool CameraBinSession::processSyncMessage(const QGstreamerMessage &message) | 1721 | @@ -895,7 +904,11 @@ bool CameraBinSession::processSyncMessage(const QGstreamerMessage &message) |
| 1722 | 1722 | ||
| 1723 | if (gm && GST_MESSAGE_TYPE(gm) == GST_MESSAGE_ELEMENT) { | 1723 | if (gm && GST_MESSAGE_TYPE(gm) == GST_MESSAGE_ELEMENT) { |
| 1724 | if (m_captureMode == QCamera::CaptureStillImage && | 1724 | if (m_captureMode == QCamera::CaptureStillImage && |
| @@ -1730,7 +1730,7 @@ index a4038c5..9d1fdfa 100644 | |||
| 1730 | st = gst_message_get_structure(gm); | 1730 | st = gst_message_get_structure(gm); |
| 1731 | 1731 | ||
| 1732 | if (gst_structure_has_field_typed(st, "buffer", GST_TYPE_BUFFER)) { | 1732 | if (gst_structure_has_field_typed(st, "buffer", GST_TYPE_BUFFER)) { |
| 1733 | @@ -869,7 +882,11 @@ bool CameraBinSession::processSyncMessage(const QGstreamerMessage &message) | 1733 | @@ -905,7 +918,11 @@ bool CameraBinSession::processSyncMessage(const QGstreamerMessage &message) |
| 1734 | 1734 | ||
| 1735 | QImage img; | 1735 | QImage img; |
| 1736 | 1736 | ||
| @@ -1742,7 +1742,7 @@ index a4038c5..9d1fdfa 100644 | |||
| 1742 | if (caps) { | 1742 | if (caps) { |
| 1743 | GstStructure *structure = gst_caps_get_structure(caps, 0); | 1743 | GstStructure *structure = gst_caps_get_structure(caps, 0); |
| 1744 | gint width = 0; | 1744 | gint width = 0; |
| 1745 | @@ -1142,7 +1159,11 @@ QList< QPair<int,int> > CameraBinSession::supportedFrameRates(const QSize &frame | 1745 | @@ -1178,7 +1195,11 @@ QList< QPair<int,int> > CameraBinSession::supportedFrameRates(const QSize &frame |
| 1746 | gst_structure_remove_all_fields(structure); | 1746 | gst_structure_remove_all_fields(structure); |
| 1747 | gst_structure_set_value(structure, "framerate", &rate); | 1747 | gst_structure_set_value(structure, "framerate", &rate); |
| 1748 | } | 1748 | } |
| @@ -1754,7 +1754,7 @@ index a4038c5..9d1fdfa 100644 | |||
| 1754 | 1754 | ||
| 1755 | 1755 | ||
| 1756 | for (uint i=0; i<gst_caps_get_size(caps); i++) { | 1756 | for (uint i=0; i<gst_caps_get_size(caps); i++) { |
| 1757 | @@ -1262,7 +1283,11 @@ QList<QSize> CameraBinSession::supportedResolutions(QPair<int,int> rate, | 1757 | @@ -1298,7 +1319,11 @@ QList<QSize> CameraBinSession::supportedResolutions(QPair<int,int> rate, |
| 1758 | gst_structure_set_value(structure, "width", &w); | 1758 | gst_structure_set_value(structure, "width", &w); |
| 1759 | gst_structure_set_value(structure, "height", &h); | 1759 | gst_structure_set_value(structure, "height", &h); |
| 1760 | } | 1760 | } |
| @@ -1862,7 +1862,7 @@ index fed756a..8239710 100644 | |||
| 1862 | } | 1862 | } |
| 1863 | 1863 | ||
| 1864 | diff --git a/src/plugins/gstreamer/mediaplayer/qgstreamerplayerservice.cpp b/src/plugins/gstreamer/mediaplayer/qgstreamerplayerservice.cpp | 1864 | diff --git a/src/plugins/gstreamer/mediaplayer/qgstreamerplayerservice.cpp b/src/plugins/gstreamer/mediaplayer/qgstreamerplayerservice.cpp |
| 1865 | index ce267d7..062de07 100644 | 1865 | index ddc828e..00bee36 100644 |
| 1866 | --- a/src/plugins/gstreamer/mediaplayer/qgstreamerplayerservice.cpp | 1866 | --- a/src/plugins/gstreamer/mediaplayer/qgstreamerplayerservice.cpp |
| 1867 | +++ b/src/plugins/gstreamer/mediaplayer/qgstreamerplayerservice.cpp | 1867 | +++ b/src/plugins/gstreamer/mediaplayer/qgstreamerplayerservice.cpp |
| 1868 | @@ -51,7 +51,11 @@ | 1868 | @@ -51,7 +51,11 @@ |
| @@ -2365,5 +2365,5 @@ index f2e760a..50bda3d 100644 | |||
| 2365 | 2365 | ||
| 2366 | QT_END_NAMESPACE | 2366 | QT_END_NAMESPACE |
| 2367 | -- | 2367 | -- |
| 2368 | 2.1.3 | 2368 | 2.3.1 |
| 2369 | 2369 | ||
