[SCM] intel-vaapi-driver/master: Apply upstream patch to avoid segfault on unsupported platforms

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Mon Nov 10 13:02:35 UTC 2014


The following commit has been merged in the master branch:
commit c5011352175d0e6c45002ab081e8b662579523bf
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Mon Nov 10 13:49:03 2014 +0100

    Apply upstream patch to avoid segfault on unsupported platforms

diff --git a/debian/patches/0002-avoid_segfault_on_unsupported_platforms.patch b/debian/patches/0002-avoid_segfault_on_unsupported_platforms.patch
new file mode 100644
index 0000000..7b272d0
--- /dev/null
+++ b/debian/patches/0002-avoid_segfault_on_unsupported_platforms.patch
@@ -0,0 +1,31 @@
+Description: Avoid segfailt on unsupported platforms
+ Call preinit_hw_codec callback after successful initialization to avoid segment
+ fault issue on unsupported platforms.
+Origin: upstream,
+ http://cgit.freedesktop.org/vaapi/intel-driver/commit/?h=v1.4-branch&id=eb097b1a39b69af76b5575835255cb4653195c1c
+Last-Update: 2014-11-10
+
+diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
+index ba7c7be..e768537 100644
+--- a/src/i965_drv_video.c
++++ b/src/i965_drv_video.c
+@@ -5669,9 +5669,6 @@ i965_Init(VADriverContextP ctx)
+             break;
+     }
+ 
+-    if (i965->codec_info->preinit_hw_codec)
+-        i965->codec_info->preinit_hw_codec(ctx, i965->codec_info);
+-
+     if (i == ARRAY_ELEMS(i965_sub_ops)) {
+         switch (i965->intel.device_id) {
+ #undef CHIPSET
+@@ -5697,6 +5694,9 @@ i965_Init(VADriverContextP ctx)
+ 
+         i965->current_context_id = VA_INVALID_ID;
+ 
++        if (i965->codec_info && i965->codec_info->preinit_hw_codec)
++            i965->codec_info->preinit_hw_codec(ctx, i965->codec_info);
++
+         return VA_STATUS_SUCCESS;
+     } else {
+         i--;
diff --git a/debian/patches/series b/debian/patches/series
index f1f963d..fc1b2b1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Fix_FTBFS_on_kFreeBSD.patch
+0002-avoid_segfault_on_unsupported_platforms.patch

-- 
intel-vaapi-driver packaging



More information about the pkg-multimedia-commits mailing list