mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
matroskademux: add some debugging
This commit is contained in:
parent
e4b59136fa
commit
bdbdb41e93
1 changed files with 12 additions and 1 deletions
|
@ -3996,6 +3996,9 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
||||||
data += 1;
|
data += 1;
|
||||||
size -= 1;
|
size -= 1;
|
||||||
|
|
||||||
|
GST_LOG_OBJECT (demux, "time %" G_GUINT16_FORMAT ", flags %d", time,
|
||||||
|
flags);
|
||||||
|
|
||||||
switch ((flags & 0x06) >> 1) {
|
switch ((flags & 0x06) >> 1) {
|
||||||
case 0x0: /* no lacing */
|
case 0x0: /* no lacing */
|
||||||
laces = 1;
|
laces = 1;
|
||||||
|
@ -4162,6 +4165,8 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
||||||
case GST_MATROSKA_ID_REFERENCEPRIORITY:
|
case GST_MATROSKA_ID_REFERENCEPRIORITY:
|
||||||
case GST_MATROSKA_ID_REFERENCEVIRTUAL:
|
case GST_MATROSKA_ID_REFERENCEVIRTUAL:
|
||||||
case GST_MATROSKA_ID_SLICES:
|
case GST_MATROSKA_ID_SLICES:
|
||||||
|
GST_DEBUG_OBJECT (demux,
|
||||||
|
"Skipping BlockGroup subelement 0x%x - ignoring", id);
|
||||||
ret = gst_ebml_read_skip (ebml);
|
ret = gst_ebml_read_skip (ebml);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -4268,6 +4273,7 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
||||||
&& stream->set_discont) {
|
&& stream->set_discont) {
|
||||||
/* When doing seeks or such, we need to restart on key frames or
|
/* When doing seeks or such, we need to restart on key frames or
|
||||||
* decoders might choke. */
|
* decoders might choke. */
|
||||||
|
GST_DEBUG_OBJECT (demux, "skipping delta unit");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4371,11 +4377,11 @@ gst_matroska_demux_parse_cluster (GstMatroskaDemux * demux)
|
||||||
default:
|
default:
|
||||||
GST_WARNING ("Unknown Cluster subelement 0x%x - ignoring", id);
|
GST_WARNING ("Unknown Cluster subelement 0x%x - ignoring", id);
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
|
|
||||||
case GST_MATROSKA_ID_POSITION:
|
case GST_MATROSKA_ID_POSITION:
|
||||||
case GST_MATROSKA_ID_PREVSIZE:
|
case GST_MATROSKA_ID_PREVSIZE:
|
||||||
case GST_MATROSKA_ID_ENCRYPTEDBLOCK:
|
case GST_MATROSKA_ID_ENCRYPTEDBLOCK:
|
||||||
case GST_MATROSKA_ID_SILENTTRACKS:
|
case GST_MATROSKA_ID_SILENTTRACKS:
|
||||||
|
GST_DEBUG ("Skipping Cluster subelement 0x%x - ignoring", id);
|
||||||
ret = gst_ebml_read_skip (ebml);
|
ret = gst_ebml_read_skip (ebml);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -5257,6 +5263,8 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
|
||||||
g_value_set_double (&fps_double, videocontext->default_fps);
|
g_value_set_double (&fps_double, videocontext->default_fps);
|
||||||
g_value_transform (&fps_double, &fps_fraction);
|
g_value_transform (&fps_double, &fps_fraction);
|
||||||
|
|
||||||
|
GST_DEBUG ("using default fps %f", videocontext->default_fps);
|
||||||
|
|
||||||
gst_structure_set_value (structure, "framerate", &fps_fraction);
|
gst_structure_set_value (structure, "framerate", &fps_fraction);
|
||||||
g_value_unset (&fps_double);
|
g_value_unset (&fps_double);
|
||||||
g_value_unset (&fps_fraction);
|
g_value_unset (&fps_fraction);
|
||||||
|
@ -5270,6 +5278,9 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
|
||||||
gst_guint64_to_gdouble (context->default_duration));
|
gst_guint64_to_gdouble (context->default_duration));
|
||||||
g_value_transform (&fps_double, &fps_fraction);
|
g_value_transform (&fps_double, &fps_fraction);
|
||||||
|
|
||||||
|
GST_DEBUG ("using default duration %" G_GUINT64_FORMAT,
|
||||||
|
context->default_duration);
|
||||||
|
|
||||||
gst_structure_set_value (structure, "framerate", &fps_fraction);
|
gst_structure_set_value (structure, "framerate", &fps_fraction);
|
||||||
g_value_unset (&fps_double);
|
g_value_unset (&fps_double);
|
||||||
g_value_unset (&fps_fraction);
|
g_value_unset (&fps_fraction);
|
||||||
|
|
Loading…
Reference in a new issue