Pārlūkot izejas kodu

Fix an error and a few warnings

The strings didn't have ending double quotes.  No clue why this didn't
fail in GCC and VC.  Well, VC is horrible but I expected better out of
GCC.
jp9000 11 gadi atpakaļ
vecāks
revīzija
a9f5959b3c
3 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 0 2
      libobs/media-io/video-io.c
  2. 1 0
      libobs/obs-properties.c
  3. 2 2
      obs/obs-app.cpp

+ 0 - 2
libobs/media-io/video-io.c

@@ -120,8 +120,6 @@ static inline void video_output_cur_frame(struct video_output *video)
 	pthread_mutex_unlock(&video->input_mutex);
 }
 
-static inline void nop() {int test = 0;}
-
 static void *video_thread(void *param)
 {
 	struct video_output *video = param;

+ 1 - 0
libobs/obs-properties.c

@@ -133,6 +133,7 @@ static inline size_t get_property_size(enum obs_property_type type)
 {
 	switch (type) {
 	case OBS_PROPERTY_INVALID:   return 0;
+	case OBS_PROPERTY_BOOL:      return 0;
 	case OBS_PROPERTY_INT:       return sizeof(struct int_data);
 	case OBS_PROPERTY_FLOAT:     return sizeof(struct float_data);
 	case OBS_PROPERTY_TEXT:      return 0;

+ 2 - 2
obs/obs-app.cpp

@@ -182,8 +182,8 @@ void OBSApp::OBSInit()
 }
 
 #ifdef __APPLE__
-#define INPUT_AUDIO_SOURCE  "coreaudio_input_capture
-#define OUTPUT_AUDIO_SOURCE "coreaudio_output_capture
+#define INPUT_AUDIO_SOURCE  "coreaudio_input_capture"
+#define OUTPUT_AUDIO_SOURCE "coreaudio_output_capture"
 #elif _WIN32
 #define INPUT_AUDIO_SOURCE  "wasapi_input_capture"
 #define OUTPUT_AUDIO_SOURCE "wasapi_output_capture"