mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
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); ^
This commit is contained in:
parent
3e27368ce3
commit
d183565334
1 changed files with 1 additions and 3 deletions
|
@ -443,8 +443,6 @@ done:
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
pause:
|
pause:
|
||||||
{
|
{
|
||||||
const gchar *reason = gst_flow_get_name (ret);
|
|
||||||
|
|
||||||
if (ret == GST_FLOW_EOS) {
|
if (ret == GST_FLOW_EOS) {
|
||||||
/* perform EOS logic, FIXME, segment seek? */
|
/* perform EOS logic, FIXME, segment seek? */
|
||||||
gst_pad_push_event (pad, gst_event_new_eos ());
|
gst_pad_push_event (pad, gst_event_new_eos ());
|
||||||
|
@ -454,7 +452,7 @@ pause:
|
||||||
gst_pad_push_event (pad, gst_event_new_eos ());
|
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);
|
gst_pad_pause_task (pad);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue