Remove same code if/else 80/142680/2
authorSeokHoon Lee <andy.shlee@samsung.com>
Mon, 7 Aug 2017 04:23:07 +0000 (13:23 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Tue, 8 Aug 2017 01:05:51 +0000 (10:05 +0900)
- There is same code in if {} and else {}
  so, remove code

Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I186801b4029a6e1e1f22dd7194744cbb55b54f4c

packaging/capi-media-streamrecorder.spec
test/streamrecorder_test.c

index 5c62813..a4b50b3 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamrecorder
 Summary:    A Streamrecorder library in Tizen Native API
-Version:    0.0.13
+Version:    0.0.14
 Release:    0
 Group:      Multimedia/Other
 License:    Apache-2.0
index c195376..1224dd1 100644 (file)
@@ -333,18 +333,10 @@ int __feed_buffer_test(MMHandleType handle, int mode)
                g_print("pipeline create fail\n");
                return FALSE;
        }
-       if (mode == MODE_LIVE_BUFFER_NV12_VIDEO_SW) {
-               vsrc = gst_element_factory_make("videotestsrc", NULL);
-               if (!vsrc) {
-                       g_print("src element creation failed\n");
-                       return FALSE;
-               }
-       } else {
-               vsrc = gst_element_factory_make("videotestsrc", NULL);
-               if (!vsrc) {
-                       g_print("src element creation failed\n");
-                       return FALSE;
-               }
+       vsrc = gst_element_factory_make("videotestsrc", NULL);
+       if (!vsrc) {
+               g_print("src element creation failed\n");
+               return FALSE;
        }
        if (mode == MODE_LIVE_BUFFER_NV12_VIDEO_SW) {
        vconvert = gst_element_factory_make("videoconvert", NULL);