qtdemux: nitpicking in esds parsing

This commit is contained in:
Arnaud Vrac 2013-07-19 01:49:20 +02:00 committed by Sebastian Dröge
parent d0d25a5e1f
commit 40ab78825c

View file

@ -9942,9 +9942,7 @@ gst_qtdemux_handle_esds (GstQTDemux * qtdemux, QtDemuxStream * stream,
case 0x64: case 0x64:
case 0x65: case 0x65:
codec_name = "MPEG-2 video"; codec_name = "MPEG-2 video";
caps = gst_caps_new_simple ("video/mpeg",
gst_caps_unref (stream->caps);
stream->caps = gst_caps_new_simple ("video/mpeg",
"mpegversion", G_TYPE_INT, 2, "mpegversion", G_TYPE_INT, 2,
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL); "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);
break; break;
@ -9956,9 +9954,7 @@ gst_qtdemux_handle_esds (GstQTDemux * qtdemux, QtDemuxStream * stream,
break; break;
case 0x6A: /* MPEG-1 */ case 0x6A: /* MPEG-1 */
codec_name = "MPEG-1 video"; codec_name = "MPEG-1 video";
caps = gst_caps_new_simple ("video/mpeg",
gst_caps_unref (stream->caps);
stream->caps = gst_caps_new_simple ("video/mpeg",
"mpegversion", G_TYPE_INT, 1, "mpegversion", G_TYPE_INT, 1,
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL); "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);
break; break;