Changeset 3df8219d70e452cfdd6631658202fb59da4e225f
- Timestamp:
- 01/06/08 11:13:57
(4 months ago)
- Author:
- Rémi Denis-Courmont <rdenis@simphalempin.com>
- git-committer:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1212311637 +0300
- git-parent:
[951d135f82db558748836d065ba440ab9128e9e4]
- git-author:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1212311637 +0300
- Message:
RC OSD: Fix NULL check after deref (CID 109)
(cherry picked from commit a2d82490555eb3271a77b4958bc8528091951901)
Conflicts:
modules/control/rc.c
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3561b9b |
r3df8219 |
|
| 1901 | 1901 | intf_thread_t *p_intf = (intf_thread_t*)p_this; |
|---|
| 1902 | 1902 | playlist_t *p_playlist = NULL; |
|---|
| | 1903 | int i_error = VLC_SUCCESS; |
|---|
| 1903 | 1904 | vlc_value_t val; |
|---|
| 1904 | | int i_error = VLC_EGENERIC; |
|---|
| 1905 | 1905 | |
|---|
| 1906 | 1906 | if ( !*newval.psz_string ) |
|---|
| … | … | |
| 1908 | 1908 | msg_rc( _("Please provide one of the following parameters:") ); |
|---|
| 1909 | 1909 | msg_rc( "[on|off|up|down|left|right|select]" ); |
|---|
| 1910 | | return i_error; |
|---|
| | 1910 | return VLC_EGENERIC; |
|---|
| 1911 | 1911 | } |
|---|
| 1912 | 1912 | |
|---|
| … | … | |
| 1929 | 1929 | |
|---|
| 1930 | 1930 | val.psz_string = strdup( newval.psz_string ); |
|---|
| | 1931 | if( !val.psz_string ) |
|---|
| | 1932 | return VLC_ENOMEM; |
|---|
| 1931 | 1933 | if( !strcmp( val.psz_string, "on" ) || !strcmp( val.psz_string, "show" )) |
|---|
| 1932 | 1934 | osd_MenuShow( p_this ); |
|---|
| 1933 | | else if( !strcmp( val.psz_string, "off" ) || !strcmp( val.psz_string, "hide" ) ) |
|---|
| | 1935 | else if( !strcmp( val.psz_string, "off" ) |
|---|
| | 1936 | || !strcmp( val.psz_string, "hide" ) ) |
|---|
| 1934 | 1937 | osd_MenuHide( p_this ); |
|---|
| 1935 | 1938 | else if( !strcmp( val.psz_string, "up" ) ) |
|---|
| … | … | |
| 1947 | 1950 | msg_rc( _("Please provide one of the following parameters:") ); |
|---|
| 1948 | 1951 | msg_rc( "[on|off|up|down|left|right|select]" ); |
|---|
| 1949 | | free( val.psz_string ); |
|---|
| 1950 | | return i_error; |
|---|
| 1951 | | } |
|---|
| 1952 | | |
|---|
| 1953 | | i_error = VLC_SUCCESS; |
|---|
| | 1952 | i_error = VLC_EGENERIC; |
|---|
| | 1953 | } |
|---|
| | 1954 | |
|---|
| 1954 | 1955 | free( val.psz_string ); |
|---|
| 1955 | 1956 | return i_error; |
|---|