/* caps functions */
static GstCaps *gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext
* videocontext,
- const gchar * codec_id, gpointer data, guint size, gchar ** codec_name);
+ const gchar * codec_id, guint8 * data, guint size, gchar ** codec_name);
static GstCaps *gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext
* audiocontext,
- const gchar * codec_id, gpointer data, guint size, gchar ** codec_name);
+ const gchar * codec_id, guint8 * data, guint size, gchar ** codec_name);
static GstCaps
* gst_matroska_demux_subtitle_caps (GstMatroskaTrackSubtitleContext *
subtitlecontext, const gchar * codec_id, gpointer data, guint size);
break;
}
}
- break;
DEBUG_ELEMENT_STOP (demux, ebml, "ContentCompression", ret);
+ break;
}
case GST_MATROSKA_ID_CONTENTENCRYPTION:
templ = gst_element_class_get_pad_template (klass, "video_%02d");
caps = gst_matroska_demux_video_caps (videocontext,
context->codec_id,
- context->codec_priv, context->codec_priv_size, &codec);
+ (guint8 *) context->codec_priv, context->codec_priv_size, &codec);
if (codec) {
list = gst_tag_list_new ();
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
static GstCaps *
gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
- videocontext, const gchar * codec_id, gpointer data, guint size,
+ videocontext, const gchar * codec_id, guint8 * data, guint size,
gchar ** codec_name)
{
GstMatroskaTrackContext *context = (GstMatroskaTrackContext *) videocontext;
static GstCaps *
gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
- audiocontext, const gchar * codec_id, gpointer data, guint size,
+ audiocontext, const gchar * codec_id, guint8 * data, guint size,
gchar ** codec_name)
{
GstMatroskaTrackContext *context = (GstMatroskaTrackContext *) audiocontext;
context->codec_priv =
g_realloc (context->codec_priv,
context->codec_priv_size + GST_BUFFER_SIZE (buffer));
- memcpy (context->codec_priv + context->codec_priv_size,
+ memcpy ((guint8 *) context->codec_priv + context->codec_priv_size,
GST_BUFFER_DATA (buffer), GST_BUFFER_SIZE (buffer));
context->codec_priv_size =
context->codec_priv_size + GST_BUFFER_SIZE (buffer);