mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: Check presence of bitrate tags
Check whether the tag was present before printing it out CID #1418501
This commit is contained in:
parent
92c3207463
commit
d08e155ec8
1 changed files with 9 additions and 9 deletions
|
@ -11753,14 +11753,14 @@ gst_qtdemux_guess_bitrate (GstQTDemux * qtdemux)
|
||||||
/* retrieve bitrate, prefer avg then max */
|
/* retrieve bitrate, prefer avg then max */
|
||||||
bitrate = 0;
|
bitrate = 0;
|
||||||
if (qtdemux->streams[i]->stream_tags) {
|
if (qtdemux->streams[i]->stream_tags) {
|
||||||
gst_tag_list_get_uint (qtdemux->streams[i]->stream_tags,
|
if (gst_tag_list_get_uint (qtdemux->streams[i]->stream_tags,
|
||||||
GST_TAG_MAXIMUM_BITRATE, &bitrate);
|
GST_TAG_MAXIMUM_BITRATE, &bitrate))
|
||||||
GST_DEBUG_OBJECT (qtdemux, "max-bitrate: %u", bitrate);
|
GST_DEBUG_OBJECT (qtdemux, "max-bitrate: %u", bitrate);
|
||||||
gst_tag_list_get_uint (qtdemux->streams[i]->stream_tags,
|
if (gst_tag_list_get_uint (qtdemux->streams[i]->stream_tags,
|
||||||
GST_TAG_NOMINAL_BITRATE, &bitrate);
|
GST_TAG_NOMINAL_BITRATE, &bitrate))
|
||||||
GST_DEBUG_OBJECT (qtdemux, "nominal-bitrate: %u", bitrate);
|
GST_DEBUG_OBJECT (qtdemux, "nominal-bitrate: %u", bitrate);
|
||||||
gst_tag_list_get_uint (qtdemux->streams[i]->stream_tags,
|
if (gst_tag_list_get_uint (qtdemux->streams[i]->stream_tags,
|
||||||
GST_TAG_BITRATE, &bitrate);
|
GST_TAG_BITRATE, &bitrate))
|
||||||
GST_DEBUG_OBJECT (qtdemux, "bitrate: %u", bitrate);
|
GST_DEBUG_OBJECT (qtdemux, "bitrate: %u", bitrate);
|
||||||
}
|
}
|
||||||
if (bitrate)
|
if (bitrate)
|
||||||
|
|
Loading…
Reference in a new issue