summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-09-01 10:57:46 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-09-01 10:57:46 +0300
commitd1835653349314d5a7b7923061a92ecf353ff2f1 (patch)
treeefd26f99f88e443c369e6f993686df03021a6dbd
parent3e27368ce3101d349c787cea519306c6f3d817b1 (diff)
siddec: Fix compilation with debugging disabled
gstsiddec.o gstsiddec.cc: In function ‘void play_loop(GstPad*)’: gstsiddec.cc:446:18: error: unused variable ‘reason’ [-Werror=unused-variable] const gchar *reason = gst_flow_get_name (ret); ^
-rw-r--r--ext/sidplay/gstsiddec.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/sidplay/gstsiddec.cc b/ext/sidplay/gstsiddec.cc
index 3e928e783f..d09259de99 100644
--- a/ext/sidplay/gstsiddec.cc
+++ b/ext/sidplay/gstsiddec.cc
@@ -443,8 +443,6 @@ done:
/* ERRORS */
pause:
{
- const gchar *reason = gst_flow_get_name (ret);
-
if (ret == GST_FLOW_EOS) {
/* perform EOS logic, FIXME, segment seek? */
gst_pad_push_event (pad, gst_event_new_eos ());
@@ -454,7 +452,7 @@ pause:
gst_pad_push_event (pad, gst_event_new_eos ());
}
- GST_INFO_OBJECT (siddec, "pausing task, reason: %s", reason);
+ GST_INFO_OBJECT (siddec, "pausing task, reason: %s", gst_flow_get_name (ret));
gst_pad_pause_task (pad);
goto done;
}