aboutsummaryrefslogtreecommitdiffstats
path: root/testing/subtitleeditor/01-fix-build.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-03-23 07:57:56 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-03-23 07:58:01 +0000
commita3d88a3edf3383cf4ee6096c4da3ecbb5333a08d (patch)
tree3a3964ae0bc3f5cda5abf4fb2723faef216b045c /testing/subtitleeditor/01-fix-build.patch
parent913ab399a3758b18030f549fce9c96e530678b4b (diff)
downloadaports-a3d88a3edf3383cf4ee6096c4da3ecbb5333a08d.tar.bz2
aports-a3d88a3edf3383cf4ee6096c4da3ecbb5333a08d.tar.xz
testing/subtitleeditor: new aport
Diffstat (limited to 'testing/subtitleeditor/01-fix-build.patch')
-rw-r--r--testing/subtitleeditor/01-fix-build.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/subtitleeditor/01-fix-build.patch b/testing/subtitleeditor/01-fix-build.patch
new file mode 100644
index 0000000000..706fe65e54
--- /dev/null
+++ b/testing/subtitleeditor/01-fix-build.patch
@@ -0,0 +1,37 @@
+Author: Philip Rinn <rinni@inventati.org>
+Description: Fix build
+Last-update: 2016-10-15
+--- a/src/vp/gstplayer.cc
++++ b/src/vp/gstplayer.cc
+@@ -417,8 +417,13 @@
+ }
+ catch(std::runtime_error &ex)
+ {
+- se_debug_message(SE_DEBUG_VIDEO_PLAYER, "failed to gen_audio_element '%s'", ex.what());
+- GST_ELEMENT_WARNING(m_pipeline->gobj(), RESOURCE, NOT_FOUND, (ex.what()), (NULL));
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wformat-security"
++
++ se_debug_message(SE_DEBUG_VIDEO_PLAYER, "failed to gen_audio_element '%s'", ex.what());
++ GST_ELEMENT_WARNING(m_pipeline->gobj(), RESOURCE, NOT_FOUND, (ex.what()), (NULL));
++
++#pragma GCC diagnostic pop
+ }
+ // Return an NULL ptr
+ return Glib::RefPtr<Gst::Element>();
+@@ -507,8 +512,13 @@
+ }
+ catch(std::runtime_error &ex)
+ {
+- se_debug_message(SE_DEBUG_VIDEO_PLAYER, "failed to gen_video_element '%s'", ex.what());
+- GST_ELEMENT_ERROR(m_pipeline->gobj(), RESOURCE, NOT_FOUND, (ex.what()), (NULL));
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wformat-security"
++
++ se_debug_message(SE_DEBUG_VIDEO_PLAYER, "failed to gen_audio_element '%s'", ex.what());
++ GST_ELEMENT_WARNING(m_pipeline->gobj(), RESOURCE, NOT_FOUND, (ex.what()), (NULL));
++
++#pragma GCC diagnostic pop
+ }
+ // Return an NULL ptr
+ return Glib::RefPtr<Gst::Element>();