audio/videodecoder: Rename variable in macro from dec to __dec

Otherwise it might shadow another variable in the outside scope
and cause interesting side effects.
This commit is contained in:
Sebastian Dröge 2013-07-25 14:11:28 +02:00
parent 239b623a9c
commit 99ef452fc4
2 changed files with 4 additions and 4 deletions

View file

@ -129,8 +129,8 @@ GstFlowReturn _gst_audio_decoder_error (GstAudioDecoder *dec, gint weight,
G_STMT_START { \
gchar *__txt = _gst_element_error_printf text; \
gchar *__dbg = _gst_element_error_printf debug; \
GstAudioDecoder *dec = GST_AUDIO_DECODER (el); \
ret = _gst_audio_decoder_error (dec, weight, GST_ ## domain ## _ERROR, \
GstAudioDecoder *__dec = GST_AUDIO_DECODER (el); \
ret = _gst_audio_decoder_error (__dec, weight, GST_ ## domain ## _ERROR, \
GST_ ## domain ## _ERROR_ ## code, __txt, __dbg, __FILE__, \
GST_FUNCTION, __LINE__); \
} G_STMT_END

View file

@ -148,8 +148,8 @@ GstFlowReturn _gst_video_decoder_error (GstVideoDecoder *dec, gint weight,
G_STMT_START { \
gchar *__txt = _gst_element_error_printf text; \
gchar *__dbg = _gst_element_error_printf debug; \
GstVideoDecoder *dec = GST_VIDEO_DECODER (el); \
ret = _gst_video_decoder_error (dec, w, GST_ ## domain ## _ERROR, \
GstVideoDecoder *__dec = GST_VIDEO_DECODER (el); \
ret = _gst_video_decoder_error (__dec, w, GST_ ## domain ## _ERROR, \
GST_ ## domain ## _ERROR_ ## code, __txt, __dbg, __FILE__, \
GST_FUNCTION, __LINE__); \
} G_STMT_END