summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2015-11-25 22:48:32 +0000
committerLuis de Bethencourt <luisbg@osg.samsung.com>2015-11-25 22:48:36 +0000
commit9d70682e73e414ebf3d734c030cf92903f53e386 (patch)
treec34a1b6b5a1e8d61e6bc2d7e453d0debbee03cde
parentc75a69d415b8ce95f6607e9a79a71bd9331ce400 (diff)
qtdemux: use macro for codec_name
Use _codec() macro instead of duplicating code.
-rw-r--r--gst/isomp4/qtdemux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 4bf88d8cb..ea3f1f59a 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -12311,8 +12311,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
case GST_MAKE_FOURCC ('U', 'M', 'P', '4'):
caps = gst_caps_new_simple ("video/mpeg",
"mpegversion", G_TYPE_INT, 4, NULL);
- if (codec_name)
- *codec_name = g_strdup ("MPEG-4");
+ _codec ("MPEG-4");
break;
case GST_MAKE_FOURCC ('c', 'v', 'i', 'd'):