mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
239b623a9c
commit
99ef452fc4
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue