wasapi: Fix build warnings
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 17 Sep 2019 11:32:18 +0000 (20:32 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 17 Oct 2019 18:51:34 +0000 (19:51 +0100)
gstwasapiutil.c(173) : warning C4715: 'gst_wasapi_device_role_to_erole': not all control paths return a value
gstwasapiutil.c(188) : warning C4715: 'gst_wasapi_erole_to_device_role': not all control paths return a value

sys/wasapi/gstwasapiutil.c

index eac2883..81df8d8 100644 (file)
@@ -170,6 +170,8 @@ gst_wasapi_device_role_to_erole (gint role)
     default:
       g_assert_not_reached ();
   }
+
+  return -1;
 }
 
 gint
@@ -185,6 +187,8 @@ gst_wasapi_erole_to_device_role (gint erole)
     default:
       g_assert_not_reached ();
   }
+
+  return -1;
 }
 
 static const gchar *