diff options
Diffstat (limited to 'testing/subtitleeditor/01-fix-build.patch')
-rw-r--r-- | testing/subtitleeditor/01-fix-build.patch | 37 |
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>(); |