diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-01-10 11:25:47 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-01-10 11:25:47 +0000 |
commit | d4441a3025dfc8b9836ff342b9c9dd20e6f4f82d (patch) | |
tree | ff511b58490ed95922aa89a99f0052f0ee422ff9 /gst/mpegdemux | |
parent | 0b4dfa685d313f698c3b6b05d5f6894c20bfbc38 (diff) | |
download | gstreamer-plugins-bad-d4441a3025dfc8b9836ff342b9c9dd20e6f4f82d.tar.gz |
mpegtsdemux: fix silly way of creating caps
Diffstat (limited to 'gst/mpegdemux')
-rw-r--r-- | gst/mpegdemux/mpegtspacketizer.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index cbea99f9c..9a9fd0c8c 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -2089,15 +2089,11 @@ mpegts_try_discover_packet_size (MpegTSPacketizer * packetizer) if (dest[i] == 0x47 && dest[i + packetsize] == 0x47 && dest[i + packetsize * 2] == 0x47 && dest[i + packetsize * 3] == 0x47) { - gchar *str; packetizer->know_packet_size = TRUE; packetizer->packet_size = packetsize; - str = - g_strdup_printf - ("video/mpegts, systemstream=(boolean)true, packetsize=%d", - packetsize); - packetizer->caps = gst_caps_from_string ((const gchar *) str); - g_free (str); + packetizer->caps = gst_caps_new_simple ("video/mpegts", + "systemstream", G_TYPE_BOOLEAN, TRUE, + "packetsize", packetsize, NULL); pos = i; break; } |