Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
528f0214
Commit
528f0214
authored
Sep 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch the few var_GetString remains to var_GetNonEmptyString
parent
050de848
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
9 deletions
+16
-9
modules/gui/wxwidgets/extrapanel.cpp
modules/gui/wxwidgets/extrapanel.cpp
+3
-1
modules/services_discovery/podcast.c
modules/services_discovery/podcast.c
+3
-2
src/control/video.c
src/control/video.c
+4
-4
src/input/demux.c
src/input/demux.c
+3
-1
src/input/input.c
src/input/input.c
+3
-1
No files found.
modules/gui/wxwidgets/extrapanel.cpp
View file @
528f0214
...
...
@@ -1036,7 +1036,9 @@ void ExtraPanel::CheckAout()
p_intf
->
p_sys
->
p_aout
=
p_aout
;
f_preamp
=
var_GetFloat
(
p_aout
,
"equalizer-preamp"
);
psz_bands
=
var_GetString
(
p_aout
,
"equalizer-bands"
);
psz_bands
=
var_GetNonEmptyString
(
p_aout
,
"equalizer-bands"
);
if
(
psz_bands
==
NULL
)
psz_bands
=
strdup
(
""
);
b_update
=
VLC_TRUE
;
}
vlc_object_release
(
p_aout
);
...
...
modules/services_discovery/podcast.c
View file @
528f0214
...
...
@@ -158,8 +158,9 @@ static void Run( services_discovery_t *p_sd )
if
(
p_sys
->
b_update
==
VLC_TRUE
)
{
msg_Dbg
(
p_sd
,
"Update required"
);
psz_urls
=
var_GetString
(
p_sd
,
"podcast-urls"
);
ParseUrls
(
p_sd
,
psz_urls
);
psz_urls
=
var_GetNonEmptyString
(
p_sd
,
"podcast-urls"
);
if
(
psz_urls
!=
NULL
)
ParseUrls
(
p_sd
,
psz_urls
);
free
(
psz_urls
);
p_sys
->
b_update
=
VLC_FALSE
;
}
...
...
src/control/video.c
View file @
528f0214
...
...
@@ -359,9 +359,9 @@ char *libvlc_video_get_aspect_ratio( libvlc_media_instance_t *p_mi,
if
(
!
p_vout
)
return
0
;
psz_aspect
=
var_GetString
(
p_vout
,
"aspect-ratio"
);
psz_aspect
=
var_Get
NonEmpty
String
(
p_vout
,
"aspect-ratio"
);
vlc_object_release
(
p_vout
);
return
psz_aspect
;
return
psz_aspect
?
psz_aspect
:
strdup
(
""
)
;
}
void
libvlc_video_set_aspect_ratio
(
libvlc_media_instance_t
*
p_mi
,
...
...
@@ -458,9 +458,9 @@ char *libvlc_video_get_crop_geometry( libvlc_media_instance_t *p_mi,
if
(
!
p_vout
)
return
0
;
psz_geometry
=
var_GetString
(
p_vout
,
"crop"
);
psz_geometry
=
var_Get
NonEmpty
String
(
p_vout
,
"crop"
);
vlc_object_release
(
p_vout
);
return
psz_geometry
;
return
psz_geometry
?
psz_geometry
:
strdup
(
""
)
;
}
void
libvlc_video_set_crop_geometry
(
libvlc_media_instance_t
*
p_mi
,
...
...
src/input/demux.c
View file @
528f0214
...
...
@@ -50,7 +50,9 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
if
(
*
p_demux
->
psz_demux
==
'\0'
)
{
free
(
p_demux
->
psz_demux
);
p_demux
->
psz_demux
=
var_GetString
(
p_obj
,
"demux"
);
p_demux
->
psz_demux
=
var_GetNonEmptyString
(
p_obj
,
"demux"
);
if
(
p_demux
->
psz_demux
==
NULL
)
p_demux
->
psz_demux
=
strdup
(
""
);
}
if
(
!
b_quick
)
...
...
src/input/input.c
View file @
528f0214
...
...
@@ -995,11 +995,13 @@ static int Init( input_thread_t * p_input )
var_Get
(
p_input
,
"sub-autodetect-file"
,
&
val
);
if
(
val
.
b_bool
)
{
char
*
psz_autopath
=
var_GetString
(
p_input
,
"sub-autodetect-path"
);
char
*
psz_autopath
=
var_Get
NonEmpty
String
(
p_input
,
"sub-autodetect-path"
);
char
**
subs
=
subtitles_Detect
(
p_input
,
psz_autopath
,
p_input
->
p
->
input
.
p_item
->
psz_uri
);
input_source_t
*
sub
;
i
=
0
;
if
(
psz_autopath
==
NULL
)
psz_autopath
=
strdup
(
""
);
/* Try to autoselect the first autodetected subtitles file
* if no subtitles file was specified */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment