summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-05-23 20:25:27 +0900
committerHermet Park <hermetpark@gmail.com>2019-05-23 20:25:27 +0900
commite851aa6e5279bc27545eb60a227a0d41acb637c4 (patch)
tree0e2688bee3e58e9957bf49441a409ff091cb5aff
parentbaaa053659c1c92007d98546d2563481b4328c7b (diff)
Emotion gst1 module: fix "empty if statement" warning
Summary: the macro GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS can be undefined (see gst core doc), hence the if statement may have no body Test Plan: compilation Reviewers: zmike, raster, cedric, Hermet Reviewed By: Hermet Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8939
-rw-r--r--src/modules/emotion/gstreamer1/emotion_gstreamer.c29
1 files changed, 23 insertions, 6 deletions
diff --git a/src/modules/emotion/gstreamer1/emotion_gstreamer.c b/src/modules/emotion/gstreamer1/emotion_gstreamer.c
index f3118c7969..2def4d70d3 100644
--- a/src/modules/emotion/gstreamer1/emotion_gstreamer.c
+++ b/src/modules/emotion/gstreamer1/emotion_gstreamer.c
@@ -1563,9 +1563,11 @@ _bus_main_handler(void *data)
1563#endif 1563#endif
1564 { 1564 {
1565 if (getenv("EMOTION_GSTREAMER_DOT")) 1565 if (getenv("EMOTION_GSTREAMER_DOT"))
1566 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(ev->pipeline), 1566 {
1567 GST_DEBUG_GRAPH_SHOW_ALL, 1567 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(ev->pipeline),
1568 getenv("EMOTION_GSTREAMER_DOT")); 1568 GST_DEBUG_GRAPH_SHOW_ALL,
1569 getenv("EMOTION_GSTREAMER_DOT"));
1570 }
1569 } 1571 }
1570 1572
1571 _emotion_open_done(ev->obj); 1573 _emotion_open_done(ev->obj);
@@ -1701,7 +1703,12 @@ _emotion_gstreamer_cancel(void *data, Ecore_Thread *thread)
1701 if (getuid() == geteuid()) 1703 if (getuid() == geteuid())
1702#endif 1704#endif
1703 { 1705 {
1704 if (getenv("EMOTION_GSTREAMER_DOT")) GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(ev->pipeline), GST_DEBUG_GRAPH_SHOW_ALL, getenv("EMOTION_GSTREAMER_DOT")); 1706 if (getenv("EMOTION_GSTREAMER_DOT"))
1707 {
1708 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(ev->pipeline),
1709 GST_DEBUG_GRAPH_SHOW_ALL,
1710 getenv("EMOTION_GSTREAMER_DOT"));
1711 }
1705 } 1712 }
1706 1713
1707 emotion_gstreamer_unref(ev); 1714 emotion_gstreamer_unref(ev);
@@ -1723,7 +1730,12 @@ _emotion_gstreamer_end(void *data, Ecore_Thread *thread)
1723 if (getuid() == geteuid()) 1730 if (getuid() == geteuid())
1724#endif 1731#endif
1725 { 1732 {
1726 if (getenv("EMOTION_GSTREAMER_DOT")) GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(ev->pipeline), GST_DEBUG_GRAPH_SHOW_ALL, getenv("EMOTION_GSTREAMER_DOT")); 1733 if (getenv("EMOTION_GSTREAMER_DOT"))
1734 {
1735 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(ev->pipeline),
1736 GST_DEBUG_GRAPH_SHOW_ALL,
1737 getenv("EMOTION_GSTREAMER_DOT"));
1738 }
1727 } 1739 }
1728 1740
1729 emotion_gstreamer_unref(ev); 1741 emotion_gstreamer_unref(ev);
@@ -1791,7 +1803,12 @@ _create_pipeline(Emotion_Gstreamer *ev,
1791 if (getuid() == geteuid()) 1803 if (getuid() == geteuid())
1792#endif 1804#endif
1793 { 1805 {
1794 if (getenv("EMOTION_GSTREAMER_DOT")) GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(playbin), GST_DEBUG_GRAPH_SHOW_ALL, getenv("EMOTION_GSTREAMER_DOT")); 1806 if (getenv("EMOTION_GSTREAMER_DOT"))
1807 {
1808 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(playbin),
1809 GST_DEBUG_GRAPH_SHOW_ALL,
1810 getenv("EMOTION_GSTREAMER_DOT"));
1811 }
1795 } 1812 }
1796 1813
1797 return playbin; 1814 return playbin;