@@ -154,7 +154,7 @@ bool recording_deinit(void)
154154 /* Push recording to video history playlist */
155155#ifdef HAVE_FFMPEG
156156 if ( history_list_enable
157- && ! string_is_empty ( recording_st -> path ) )
157+ && * recording_st -> path )
158158 {
159159 struct playlist_entry entry = {0 };
160160
@@ -221,7 +221,7 @@ bool recording_init(void)
221221 (float )av_info -> timing .fps ,
222222 (float )av_info -> timing .sample_rate );
223223
224- if (! string_is_empty ( recording_st -> path ) )
224+ if (* recording_st -> path )
225225 strlcpy (output , recording_st -> path , sizeof (output ));
226226 else
227227 {
@@ -230,7 +230,7 @@ bool recording_init(void)
230230 unsigned video_stream_port = settings -> uints .video_stream_port ;
231231 if (recording_st -> streaming_enable )
232232 {
233- if (! string_is_empty ( stream_url ) )
233+ if (stream_url && * stream_url )
234234 strlcpy (output , stream_url , sizeof (output ));
235235 else
236236 {
@@ -246,8 +246,8 @@ bool recording_init(void)
246246 if (!path_is_directory (recording_st -> output_dir ))
247247 path_mkdir (recording_st -> output_dir );
248248 /* Fallback to core name if started without content */
249- if (string_is_empty ( game_name ) )
250- game_name = runloop_st -> system .info .library_name ;
249+ if (! game_name || ! * game_name )
250+ game_name = runloop_st -> system .info .library_name ;
251251
252252 {
253253 const char * ext = "mkv" ;
@@ -272,7 +272,7 @@ bool recording_init(void)
272272 }
273273
274274 /* Cache path for playlist saving */
275- if (! string_is_empty ( output ) )
275+ if (* output )
276276 strlcpy (recording_st -> path , output , sizeof (recording_st -> path ));
277277 }
278278 }
@@ -298,7 +298,7 @@ bool recording_init(void)
298298 : FFEMU_PIX_RGB565 ;
299299 params .config = NULL ;
300300
301- if (! string_is_empty ( recording_st -> config ) )
301+ if (* recording_st -> config )
302302 params .config = recording_st -> config ;
303303 else
304304 {
@@ -427,7 +427,7 @@ void recording_driver_update_streaming_url(void)
427427 switch (settings -> uints .streaming_mode )
428428 {
429429 case STREAMING_MODE_TWITCH :
430- if (! string_is_empty ( settings -> arrays .twitch_stream_key ) )
430+ if (* settings -> arrays .twitch_stream_key )
431431 {
432432 size_t _len = strlcpy (settings -> paths .path_stream_url ,
433433 twitch_url ,
@@ -438,7 +438,7 @@ void recording_driver_update_streaming_url(void)
438438 }
439439 break ;
440440 case STREAMING_MODE_YOUTUBE :
441- if (! string_is_empty ( settings -> arrays .youtube_stream_key ) )
441+ if (* settings -> arrays .youtube_stream_key )
442442 {
443443 size_t _len = strlcpy (settings -> paths .path_stream_url ,
444444 youtube_url ,
@@ -459,7 +459,7 @@ void recording_driver_update_streaming_url(void)
459459 }
460460 break ;
461461 case STREAMING_MODE_FACEBOOK :
462- if (! string_is_empty ( settings -> arrays .facebook_stream_key ) )
462+ if (* settings -> arrays .facebook_stream_key )
463463 {
464464 size_t _len = strlcpy (settings -> paths .path_stream_url ,
465465 facebook_url ,
0 commit comments