mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 13:13:02 +01:00
gstreamer1.0-plugins-good: fix the bug for gstrtpmp4gpay
set dafault value for MPEG4 without codec data in caps https://bugzilla.gnome.org/show_bug.cgi?id=734263 (From OE-Core rev: fe4dc1d30eea723361a0f88109717d8a70b2b17d) Signed-off-by: Wang Zidan <b50113@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b88b5b7c8d
commit
c8aba32fe9
@@ -0,0 +1,62 @@
|
||||
From c782a30482908a4b4dd9cd4abff9f9bc4016698f Mon Sep 17 00:00:00 2001
|
||||
From: Song Bing <b06498@freescale.com>
|
||||
Date: Tue, 5 Aug 2014 14:40:46 +0800
|
||||
Subject: [PATCH] gstrtpmp4gpay: set dafault value for MPEG4 without codec
|
||||
data in caps.
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=734263
|
||||
|
||||
Upstream Status: Submitted
|
||||
|
||||
Signed-off-by: Song Bing <b06498@freescale.com>
|
||||
---
|
||||
gst/rtp/gstrtpmp4gpay.c | 19 ++++++++++++++++++-
|
||||
1 file changed, 18 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c
|
||||
index 7913d9a..1749d39 100644
|
||||
--- a/gst/rtp/gstrtpmp4gpay.c
|
||||
+++ b/gst/rtp/gstrtpmp4gpay.c
|
||||
@@ -390,6 +390,7 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
||||
const GValue *codec_data;
|
||||
const gchar *media_type = NULL;
|
||||
gboolean res;
|
||||
+ const gchar *name;
|
||||
|
||||
rtpmp4gpay = GST_RTP_MP4G_PAY (payload);
|
||||
|
||||
@@ -400,7 +401,6 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
||||
GST_LOG_OBJECT (rtpmp4gpay, "got codec_data");
|
||||
if (G_VALUE_TYPE (codec_data) == GST_TYPE_BUFFER) {
|
||||
GstBuffer *buffer;
|
||||
- const gchar *name;
|
||||
|
||||
buffer = gst_value_get_buffer (codec_data);
|
||||
GST_LOG_OBJECT (rtpmp4gpay, "configuring codec_data");
|
||||
@@ -426,6 +426,23 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
||||
|
||||
rtpmp4gpay->config = gst_buffer_copy (buffer);
|
||||
}
|
||||
+ } else {
|
||||
+ name = gst_structure_get_name (structure);
|
||||
+
|
||||
+ if (!strcmp (name, "video/mpeg")) {
|
||||
+ rtpmp4gpay->profile = g_strdup ("1");
|
||||
+
|
||||
+ /* fixed rate */
|
||||
+ rtpmp4gpay->rate = 90000;
|
||||
+ /* video stream type */
|
||||
+ rtpmp4gpay->streamtype = "4";
|
||||
+ /* no params for video */
|
||||
+ rtpmp4gpay->params = NULL;
|
||||
+ /* mode */
|
||||
+ rtpmp4gpay->mode = "generic";
|
||||
+
|
||||
+ media_type = "video";
|
||||
+ }
|
||||
}
|
||||
if (media_type == NULL)
|
||||
goto config_failed;
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
@@ -3,6 +3,10 @@ include gstreamer1.0-plugins-good.inc
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
|
||||
file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607 \
|
||||
file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe"
|
||||
|
||||
SRC_URI += "file://0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "8007d57a38f6b2882961b2547fa4597c"
|
||||
SRC_URI[sha256sum] = "48a62e7987fffa289a091dfc8ccc80b401d110632b8fc1adce5b82fc092f2685"
|
||||
S = "${WORKDIR}/gst-plugins-good-${PV}"
|
||||
|
||||
Reference in New Issue
Block a user