mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
78fcd03ca3
commit
636d47d2d6
1 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue