fix build
This commit is contained in:
Wim Taymans 2017-02-20 10:59:06 +01:00
parent 7095ac62b4
commit 231f569fa1
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 8697997e332e8e128a71d83f7be471ee78b5c18a Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Mon, 20 Feb 2017 10:49:46 +0100
Subject: [PATCH] deviceproviderfactory: fix empty class check
---
gst/gstdeviceproviderfactory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gst/gstdeviceproviderfactory.c b/gst/gstdeviceproviderfactory.c
index 305e214..4835f99 100644
--- a/gst/gstdeviceproviderfactory.c
+++ b/gst/gstdeviceproviderfactory.c
@@ -498,7 +498,7 @@ gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
const gchar *found;
guint len;
- if (classes[0] == '\0')
+ if (classes[0][0] == '\0')
continue;
found = strstr (klass, classes[0]);
--
2.9.3

View File

@ -24,6 +24,7 @@ Source0: http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{versi
%endif
## For GStreamer RPM provides
Patch0: gstreamer-inspect-rpm-format.patch
Patch1: 0001-deviceproviderfactory-fix-empty-class-check.patch
Source1: gstreamer1.prov
Source2: gstreamer1.attr
@ -92,6 +93,7 @@ GStreamer streaming media framework.
%prep
%setup -q -n gstreamer-%{version}
%patch0 -p1 -b .rpm-provides
%patch1 -p1 -b .0001
%build
@ -216,6 +218,7 @@ install -m0644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/gstreamer
%changelog
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
- fix build
* Fri Jan 13 2017 Wim Taymans <wtaymans@redhat.com> - 1.11.1-1
- Update to 1.11.1