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 | 28 |
1 files changed, 14 insertions, 14 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 5c12cbd3..ab819f26 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,4 +1,4 @@ | |||
1 | From b16e42196969a6277e7b8902488fad1950a52d0d Mon Sep 17 00:00:00 2001 | 1 | From 4af76880d63e8d392eb8add8b8999e3f5031675a 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 1/2] Initial porting effort to GStreamer 1.0. |
@@ -612,7 +612,7 @@ index 3ed539e..ed0ed3c 100644 | |||
612 | + | 612 | + |
613 | +#endif | 613 | +#endif |
614 | diff --git a/src/gsttools/qgstappsrc.cpp b/src/gsttools/qgstappsrc.cpp | 614 | diff --git a/src/gsttools/qgstappsrc.cpp b/src/gsttools/qgstappsrc.cpp |
615 | index 148366b..cf9be45 100644 | 615 | index 561a96f..d5e106f 100644 |
616 | --- a/src/gsttools/qgstappsrc.cpp | 616 | --- a/src/gsttools/qgstappsrc.cpp |
617 | +++ b/src/gsttools/qgstappsrc.cpp | 617 | +++ b/src/gsttools/qgstappsrc.cpp |
618 | @@ -147,23 +147,44 @@ void QGstAppSrc::pushDataToAppSrc() | 618 | @@ -147,23 +147,44 @@ void QGstAppSrc::pushDataToAppSrc() |
@@ -1032,7 +1032,7 @@ 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 8d484aa..b0e377b 100644 | 1035 | index 556fc03..5ea2c59 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 | @@ -89,8 +89,13 @@ static void addTagToMap(const GstTagList *list, |
@@ -1083,7 +1083,7 @@ index 8d484aa..b0e377b 100644 | |||
1083 | 1083 | ||
1084 | /*! | 1084 | /*! |
1085 | Builds GstCaps for an audio format. | 1085 | Builds GstCaps for an audio format. |
1086 | @@ -564,7 +587,7 @@ int QGstUtils::cameraOrientation(const QString &device, GstElementFactory * fact | 1086 | @@ -579,7 +602,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 | { |
@@ -1514,10 +1514,10 @@ index 81e5764..c9fdb5c 100644 | |||
1514 | GstElement *m_videoSink; | 1514 | GstElement *m_videoSink; |
1515 | WId m_windowId; | 1515 | WId m_windowId; |
1516 | diff --git a/src/multimedia/gsttools_headers/qgstutils_p.h b/src/multimedia/gsttools_headers/qgstutils_p.h | 1516 | diff --git a/src/multimedia/gsttools_headers/qgstutils_p.h b/src/multimedia/gsttools_headers/qgstutils_p.h |
1517 | index 48434b2..96c23cb 100644 | 1517 | index 65ff759..6015980 100644 |
1518 | --- a/src/multimedia/gsttools_headers/qgstutils_p.h | 1518 | --- a/src/multimedia/gsttools_headers/qgstutils_p.h |
1519 | +++ b/src/multimedia/gsttools_headers/qgstutils_p.h | 1519 | +++ b/src/multimedia/gsttools_headers/qgstutils_p.h |
1520 | @@ -72,7 +72,11 @@ namespace QGstUtils { | 1520 | @@ -73,7 +73,11 @@ namespace QGstUtils { |
1521 | QSize capsResolution(const GstCaps *caps); | 1521 | QSize capsResolution(const GstCaps *caps); |
1522 | QSize capsCorrectedResolution(const GstCaps *caps); | 1522 | QSize capsCorrectedResolution(const GstCaps *caps); |
1523 | QAudioFormat audioFormatForCaps(const GstCaps *caps); | 1523 | QAudioFormat audioFormatForCaps(const GstCaps *caps); |
@@ -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 0197839..128ab58 100644 | 1692 | index a4038c5..9d1fdfa 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 | @@ -728,7 +728,11 @@ qint64 CameraBinSession::duration() const | 1695 | @@ -760,7 +760,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 0197839..128ab58 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 | @@ -765,8 +769,13 @@ void CameraBinSession::setMetaData(const QMap<QByteArray, QVariant> &data) | 1707 | @@ -797,8 +801,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 0197839..128ab58 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 | @@ -827,7 +836,11 @@ bool CameraBinSession::processSyncMessage(const QGstreamerMessage &message) | 1721 | @@ -859,7 +868,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 0197839..128ab58 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 | @@ -837,7 +850,11 @@ bool CameraBinSession::processSyncMessage(const QGstreamerMessage &message) | 1733 | @@ -869,7 +882,11 @@ bool CameraBinSession::processSyncMessage(const QGstreamerMessage &message) |
1734 | 1734 | ||
1735 | QImage img; | 1735 | QImage img; |
1736 | 1736 | ||
@@ -1742,7 +1742,7 @@ index 0197839..128ab58 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 | @@ -1110,7 +1127,11 @@ QList< QPair<int,int> > CameraBinSession::supportedFrameRates(const QSize &frame | 1745 | @@ -1142,7 +1159,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 0197839..128ab58 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 | @@ -1230,7 +1251,11 @@ QList<QSize> CameraBinSession::supportedResolutions(QPair<int,int> rate, | 1757 | @@ -1262,7 +1283,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 | } |
@@ -2365,5 +2365,5 @@ index f2e760a..50bda3d 100644 | |||
2365 | 2365 | ||
2366 | QT_END_NAMESPACE | 2366 | QT_END_NAMESPACE |
2367 | -- | 2367 | -- |
2368 | 2.1.1 | 2368 | 2.1.3 |
2369 | 2369 | ||