flvdemux: trivial cleanup

trivial patch to add proper ( while checking for if(G_UNLIKELY())

https://bugzilla.gnome.org/show_bug.cgi?id=751306
This commit is contained in:
Vineeth TM 2015-06-22 13:10:02 +09:00 committed by Luis de Bethencourt
parent 78fcd03ca3
commit 636d47d2d6

View file

@ -944,18 +944,16 @@ gst_flv_demux_parse_tag_audio (GstFlvDemux * demux, GstBuffer * buffer)
GST_LOG_OBJECT (demux, "parsing an audio tag");
if G_UNLIKELY
(!demux->audio_pad && demux->no_more_pads) {
if (G_UNLIKELY (!demux->audio_pad && demux->no_more_pads)) {
#ifndef GST_DISABLE_DEBUG
if G_UNLIKELY
(!demux->no_audio_warned) {
if (G_UNLIKELY (!demux->no_audio_warned)) {
GST_WARNING_OBJECT (demux,
"Signaled no-more-pads already but had no audio pad -- ignoring");
demux->no_audio_warned = TRUE;
}
}
#endif
return GST_FLOW_OK;
}
}
g_return_val_if_fail (gst_buffer_get_size (buffer) == demux->tag_size,
GST_FLOW_ERROR);