commit bf1205e329c33030f4554844e9689433779f437b
Author: Adam Jackson <ajax(a)fedoraproject.org>
Date: Wed Aug 26 15:21:47 2009 +0000
- avf-support.patch: Add AVF file recognition (gnome #593117)
avf-support.patch | 37 +++++++++++++++++++++++++++++++++++++
gstreamer-plugins-base.spec | 8 +++++++-
2 files changed, 44 insertions(+), 1 deletion(-)
---
diff --git a/avf-support.patch b/avf-support.patch
new file mode 100644
index 0000000..88b9bd8
--- /dev/null
+++ b/avf-support.patch
@@ -0,0 +1,37 @@
+Ref:
http://bugzilla.gnome.org/show_bug.cgi?id=593117
+
+diff -up gst-plugins-base-0.10.24/gst-libs/gst/riff/riff-ids.h.jx
gst-plugins-base-0.10.24/gst-libs/gst/riff/riff-ids.h
+--- gst-plugins-base-0.10.24/gst-libs/gst/riff/riff-ids.h.jx 2009-07-14
06:03:45.000000000 -0400
++++ gst-plugins-base-0.10.24/gst-libs/gst/riff/riff-ids.h 2009-08-26 11:16:20.000000000
-0400
+@@ -33,6 +33,7 @@ G_BEGIN_DECLS
+
+ /* tags */
+ #define GST_RIFF_TAG_RIFF GST_MAKE_FOURCC
('R','I','F','F')
++#define GST_RIFF_TAG_AVF0 GST_MAKE_FOURCC
('A','V','F','0')
+ #define GST_RIFF_TAG_RIFX GST_MAKE_FOURCC
('R','I','F','X')
+ #define GST_RIFF_TAG_LIST GST_MAKE_FOURCC
('L','I','S','T')
+ #define GST_RIFF_TAG_avih GST_MAKE_FOURCC
('a','v','i','h')
+diff -up gst-plugins-base-0.10.24/gst-libs/gst/riff/riff-read.c.jx
gst-plugins-base-0.10.24/gst-libs/gst/riff/riff-read.c
+--- gst-plugins-base-0.10.24/gst-libs/gst/riff/riff-read.c.jx 2009-07-14
06:03:45.000000000 -0400
++++ gst-plugins-base-0.10.24/gst-libs/gst/riff/riff-read.c 2009-08-26 11:16:54.000000000
-0400
+@@ -226,7 +226,7 @@ gst_riff_parse_file_header (GstElement *
+
+ data = GST_BUFFER_DATA (buf);
+ tag = GST_READ_UINT32_LE (data);
+- if (tag != GST_RIFF_TAG_RIFF)
++ if (tag != GST_RIFF_TAG_RIFF && tag != GST_RIFF_TAG_AVF0)
+ goto not_riff;
+
+ *doctype = GST_READ_UINT32_LE (data + 8);
+diff -up gst-plugins-base-0.10.24/gst/typefind/gsttypefindfunctions.c.jx
gst-plugins-base-0.10.24/gst/typefind/gsttypefindfunctions.c
+--- gst-plugins-base-0.10.24/gst/typefind/gsttypefindfunctions.c.jx 2009-08-04
18:26:58.000000000 -0400
++++ gst-plugins-base-0.10.24/gst/typefind/gsttypefindfunctions.c 2009-08-26
11:17:56.000000000 -0400
+@@ -3147,7 +3147,7 @@ riff_type_find (GstTypeFind * tf, gpoint
+ GstTypeFindData *riff_data = (GstTypeFindData *) private;
+ guint8 *data = gst_type_find_peek (tf, 0, 12);
+
+- if (data && memcmp (data, "RIFF", 4) == 0) {
++ if (data && (memcmp (data, "RIFF", 4) == 0 || memcmp (data,
"AVF0", 4) == 0)) {
+ data += 8;
+ if (memcmp (data, riff_data->data, 4) == 0)
+ gst_type_find_suggest (tf, riff_data->probability, riff_data->caps);
diff --git a/gstreamer-plugins-base.spec b/gstreamer-plugins-base.spec
index 62561a1..879ddf5 100644
--- a/gstreamer-plugins-base.spec
+++ b/gstreamer-plugins-base.spec
@@ -5,7 +5,7 @@
Name: %{gstreamer}-plugins-base
Version: 0.10.24
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GStreamer streaming media framework base plug-ins
Group: Applications/Multimedia
@@ -14,6 +14,8 @@ URL:
http://gstreamer.freedesktop.org/
Source:
http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-%{...
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: avf-support.patch
+
Requires: %{gstreamer} >= %{_gst}
Requires: liboil >= 0.3.12-9
BuildRequires: %{gstreamer}-devel >= %{_gst}
@@ -51,6 +53,7 @@ This package contains a set of well-maintained base plug-ins.
%prep
%setup -q -n gst-plugins-base-%{version}
+%patch0 -p1 -b .avf
%build
%configure \
@@ -245,6 +248,9 @@ GStreamer Base Plugins library development and header files.
%doc %{_datadir}/gtk-doc/html/gst-plugins-base-plugins-%{majorminor}
%changelog
+* Wed Aug 26 2009 Adam Jackson <ajax(a)redhat.com> 0.10.24-2
+- avf-support.patch: Add AVF file recognition (gnome #593117)
+
* Wed Aug 05 2009 Bastien Nocera <bnocera(a)redhat.com> 0.10.24-1
- Update to 0.10.24