aboutsummaryrefslogtreecommitdiffstats
path: root/testing/subtitleeditor/01-fix-build.patch
blob: 706fe65e5474432db90ca442382da847df5548c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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>();