Commit 4f5a6d35 authored by Jan Schmidt's avatar Jan Schmidt

Revert "matroskademux: send custom event with DVD subtitles frame size"

This reverts commit 1c658289.

Didn't mean to push this patch to 1.6
parent 51e19498
......@@ -50,7 +50,6 @@
#endif
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <glib/gprintf.h>
......@@ -2668,7 +2667,7 @@ gst_matroska_demux_push_dvd_clut_change_event (GstMatroskaDemux * demux,
/* make sure we have terminating 0 */
buf = g_strndup (stream->codec_priv, stream->codec_priv_size);
/* locate and parse palette part */
/* just locate and parse palette part */
start = strstr (buf, "palette:");
if (start) {
gint i;
......@@ -2715,28 +2714,6 @@ gst_matroska_demux_push_dvd_clut_change_event (GstMatroskaDemux * demux,
gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM_STICKY, s));
}
}
/* locate and parse frame size */
start = strstr (buf, "size:");
if (start) {
guint width, height;
start += 5;
while (g_ascii_isspace (*start))
start++;
if (sscanf (start, "%ux%u", &width, &height) == 2) {
GstStructure *s;
s = gst_structure_new ("application/x-gst-dvd-frame-size",
"event", G_TYPE_STRING, "dvd-set-frame-size",
"width", G_TYPE_INT, width, "height", G_TYPE_INT, height, NULL);
gst_pad_push_event (stream->pad,
gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM_STICKY, s));
}
}
g_free (buf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment