summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0000.patch')
-rw-r--r--www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0000.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0000.patch b/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0000.patch
new file mode 100644
index 000000000000..d914f4a3b826
--- /dev/null
+++ b/www-plugins/gnash/files/gnash-0.8.10-libva-1.6_0000.patch
@@ -0,0 +1,43 @@
+From e5c08131abde15f7a1e048e35d1a9ff12b2acdaa Mon Sep 17 00:00:00 2001
+From: Bastiaan Jacques <bastiaan@bjacques.org>
+Date: Thu, 26 Mar 2015 15:24:21 +0000
+Subject: Build fix: adjust smart pointers to unique_ptr API.
+
+---
+diff --git a/libdevice/vaapi/VaapiContext.h b/libdevice/vaapi/VaapiContext.h
+index 8d9de72..c49d48a 100644
+--- a/libdevice/vaapi/VaapiContext.h
++++ b/libdevice/vaapi/VaapiContext.h
+@@ -84,7 +84,7 @@ public:
+ void releaseSurface(std::shared_ptr<VaapiSurface> surface);
+
+ /// Set user data
+- void setData(std::unique_ptr<VaapiContextData> user_data) { _user_data = user_data; }
++ void setData(std::unique_ptr<VaapiContextData> user_data) { _user_data = std::move(user_data); }
+
+ /// Get user data
+ VaapiContextData *getData() const { return _user_data.get(); }
+diff --git a/libdevice/vaapi/VaapiGlobalContext.cpp b/libdevice/vaapi/VaapiGlobalContext.cpp
+index c19ed07..5127a27 100644
+--- a/libdevice/vaapi/VaapiGlobalContext.cpp
++++ b/libdevice/vaapi/VaapiGlobalContext.cpp
+@@ -33,7 +33,7 @@
+ namespace gnash {
+
+ VaapiGlobalContext::VaapiGlobalContext(std::unique_ptr<VaapiDisplay> display)
+- : _display(display)
++ : _display(std::move(display))
+ {
+ GNASH_REPORT_FUNCTION;
+
+@@ -145,7 +145,7 @@ VaapiGlobalContext *VaapiGlobalContext::get()
+ if (!dpy.get()) {
+ return NULL;
+ }
+- vaapi_global_context.reset(new VaapiGlobalContext(dpy));
++ vaapi_global_context.reset(new VaapiGlobalContext(std::move(dpy)));
+ }
+ catch (...) {
+ vaapi_set_is_enabled(false);
+--
+cgit v0.9.0.2