mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
oggstream: include stream type in warnings
It makes it easier to work out what's going on. https://bugzilla.gnome.org/show_bug.cgi?id=657151
This commit is contained in:
parent
43cb76b1d8
commit
67a882afe7
1 changed files with 10 additions and 5 deletions
|
@ -139,7 +139,8 @@ gst_ogg_stream_granulepos_to_granule (GstOggStream * pad, gint64 granulepos)
|
|||
}
|
||||
|
||||
if (mappers[pad->map].granulepos_to_granule_func == NULL) {
|
||||
GST_WARNING ("Failed to convert granulepos to granule");
|
||||
GST_WARNING ("Failed to convert %s granulepos to granule",
|
||||
gst_ogg_stream_get_media_type (pad));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -168,7 +169,8 @@ gst_ogg_stream_granule_to_granulepos (GstOggStream * pad, gint64 granule,
|
|||
}
|
||||
|
||||
if (mappers[pad->map].granule_to_granulepos_func == NULL) {
|
||||
GST_WARNING ("Failed to convert granule to granulepos");
|
||||
GST_WARNING ("Failed to convert %s granule to granulepos",
|
||||
gst_ogg_stream_get_media_type (pad));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -184,7 +186,8 @@ gst_ogg_stream_granulepos_is_key_frame (GstOggStream * pad, gint64 granulepos)
|
|||
}
|
||||
|
||||
if (mappers[pad->map].is_key_frame_func == NULL) {
|
||||
GST_WARNING ("Failed to determine key frame");
|
||||
GST_WARNING ("Failed to determine keyframeness for %s granulepos",
|
||||
gst_ogg_stream_get_media_type (pad));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -195,7 +198,8 @@ gboolean
|
|||
gst_ogg_stream_packet_is_header (GstOggStream * pad, ogg_packet * packet)
|
||||
{
|
||||
if (mappers[pad->map].is_header_func == NULL) {
|
||||
GST_WARNING ("Failed to determine header");
|
||||
GST_WARNING ("Failed to determine headerness of %s packet",
|
||||
gst_ogg_stream_get_media_type (pad));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -206,7 +210,8 @@ gint64
|
|||
gst_ogg_stream_get_packet_duration (GstOggStream * pad, ogg_packet * packet)
|
||||
{
|
||||
if (mappers[pad->map].packet_duration_func == NULL) {
|
||||
GST_WARNING ("Failed to determine packet duration");
|
||||
GST_WARNING ("Failed to determine %s packet duration",
|
||||
gst_ogg_stream_get_media_type (pad));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue