mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
matroskamux: extract interlaced-ness of video track from interlace-mode field
instead of the old boolean "interlaced" field.
This commit is contained in:
parent
9bf90f47cf
commit
aeba106878
1 changed files with 3 additions and 3 deletions
|
@ -895,11 +895,11 @@ gst_matroska_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
GstMatroskaPad *collect_pad;
|
GstMatroskaPad *collect_pad;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
const gchar *mimetype;
|
const gchar *mimetype;
|
||||||
|
const gchar *interlace_mode;
|
||||||
const GValue *value = NULL;
|
const GValue *value = NULL;
|
||||||
GstBuffer *codec_buf = NULL;
|
GstBuffer *codec_buf = NULL;
|
||||||
gint width, height, pixel_width, pixel_height;
|
gint width, height, pixel_width, pixel_height;
|
||||||
gint fps_d, fps_n;
|
gint fps_d, fps_n;
|
||||||
gboolean interlaced = FALSE;
|
|
||||||
|
|
||||||
mux = GST_MATROSKA_MUX (GST_PAD_PARENT (pad));
|
mux = GST_MATROSKA_MUX (GST_PAD_PARENT (pad));
|
||||||
|
|
||||||
|
@ -916,8 +916,8 @@ gst_matroska_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
|
|
||||||
mimetype = gst_structure_get_name (structure);
|
mimetype = gst_structure_get_name (structure);
|
||||||
|
|
||||||
if (gst_structure_get_boolean (structure, "interlaced", &interlaced)
|
interlace_mode = gst_structure_get_string (structure, "interlace-mode");
|
||||||
&& interlaced)
|
if (interlace_mode != NULL && strcmp (interlace_mode, "progressive") != 0)
|
||||||
context->flags |= GST_MATROSKA_VIDEOTRACK_INTERLACED;
|
context->flags |= GST_MATROSKA_VIDEOTRACK_INTERLACED;
|
||||||
|
|
||||||
if (!strcmp (mimetype, "video/x-theora")) {
|
if (!strcmp (mimetype, "video/x-theora")) {
|
||||||
|
|
Loading…
Reference in a new issue