From 55e2adda3770a320e3765ca93777fbf74bcc2ded Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 22 Feb 2010 19:24:06 -0300 Subject: [PATCH] h264parse: Replace 'avc-sample' with 'avc' in caps Fixes #606662 --- gst/h264parse/gsth264parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/h264parse/gsth264parse.c b/gst/h264parse/gsth264parse.c index d8f1e55fdb..66458ae588 100644 --- a/gst/h264parse/gsth264parse.c +++ b/gst/h264parse/gsth264parse.c @@ -1168,7 +1168,7 @@ static guint gst_h264_parse_parse_stream_format (GstH264Parse * h264parse, const gchar * stream_format) { - if (strcmp (stream_format, "avc-sample") == 0) { + if (strcmp (stream_format, "avc") == 0) { return GST_H264_PARSE_FORMAT_SAMPLE; } else if (strcmp (stream_format, "byte-stream") == 0) { return GST_H264_PARSE_FORMAT_BYTE; @@ -1269,12 +1269,12 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps) if (stream_format == NULL) { gst_structure_remove_field (structure, "stream-format"); if (h264parse->format == GST_H264_PARSE_FORMAT_SAMPLE) { - stream_format = "avc-sample"; + stream_format = "avc"; } else if (h264parse->format == GST_H264_PARSE_FORMAT_BYTE) { stream_format = "byte-stream"; } else { if (h264parse->packetized) { - stream_format = "avc-sample"; + stream_format = "avc"; } else { stream_format = "byte-stream"; }