Author: Philip Rinn 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(); @@ -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();