From e3418a963a37cbd279d457f8394d986ac74b053c Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 3 Mar 2015 16:23:40 +0000 Subject: [PATCH] asfmux: remove unnecessary conditional The two branches of the if conditional are identical, which means in all cases the same gst_asf_put_guid() will be executed. Do it directly. CID #1226448 --- gst/asfmux/gstasfmux.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index 791193e..8bcf0a0 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -708,11 +708,7 @@ gst_asf_mux_write_stream_properties (GstAsfMux * asfmux, guint8 ** buf, else gst_asf_put_guid (*buf + 24, guids[ASF_VIDEO_MEDIA_INDEX]); /* error correction */ - if (asfpad->is_audio) { - gst_asf_put_guid (*buf + 40, guids[ASF_NO_ERROR_CORRECTION_INDEX]); - } else { - gst_asf_put_guid (*buf + 40, guids[ASF_NO_ERROR_CORRECTION_INDEX]); - } + gst_asf_put_guid (*buf + 40, guids[ASF_NO_ERROR_CORRECTION_INDEX]); GST_WRITE_UINT64_LE (*buf + 56, 0); /* time offset */ GST_WRITE_UINT32_LE (*buf + 64, codec_data_length + media_specific_data_length); /* type specific data length */ -- 2.7.4