Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ba37f147
Commit
ba37f147
authored
Aug 29, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crop/aspect ration and deinterlace menus in Qt. (solved by jpeg)
parent
0210d306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+3
-6
No files found.
modules/gui/qt4/menus.cpp
View file @
ba37f147
...
@@ -1177,7 +1177,6 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
...
@@ -1177,7 +1177,6 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
#define NOTCOMMAND !( i_type & VLC_VAR_ISCOMMAND )
#define CURVAL val_list.p_list->p_values[i]
#define CURVAL val_list.p_list->p_values[i]
#define CURTEXT text_list.p_list->p_values[i].psz_string
#define CURTEXT text_list.p_list->p_values[i].psz_string
...
@@ -1201,8 +1200,7 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
...
@@ -1201,8 +1200,7 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
menutext
=
qfu
(
CURTEXT
?
CURTEXT
:
another_val
.
psz_string
);
menutext
=
qfu
(
CURTEXT
?
CURTEXT
:
another_val
.
psz_string
);
CreateAndConnect
(
submenu
,
psz_var
,
menutext
,
""
,
ITEM_RADIO
,
CreateAndConnect
(
submenu
,
psz_var
,
menutext
,
""
,
ITEM_RADIO
,
p_object
->
i_object_id
,
another_val
,
i_type
,
p_object
->
i_object_id
,
another_val
,
i_type
,
NOTCOMMAND
&&
val
.
psz_string
&&
val
.
psz_string
&&
!
strcmp
(
val
.
psz_string
,
CURVAL
.
psz_string
)
);
!
strcmp
(
val
.
psz_string
,
CURVAL
.
psz_string
)
);
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
break
;
break
;
...
@@ -1213,7 +1211,7 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
...
@@ -1213,7 +1211,7 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
else
menutext
.
sprintf
(
"%d"
,
CURVAL
.
i_int
);
else
menutext
.
sprintf
(
"%d"
,
CURVAL
.
i_int
);
CreateAndConnect
(
submenu
,
psz_var
,
menutext
,
""
,
ITEM_RADIO
,
CreateAndConnect
(
submenu
,
psz_var
,
menutext
,
""
,
ITEM_RADIO
,
p_object
->
i_object_id
,
CURVAL
,
i_type
,
p_object
->
i_object_id
,
CURVAL
,
i_type
,
NOTCOMMAND
&&
CURVAL
.
i_int
==
val
.
i_int
);
CURVAL
.
i_int
==
val
.
i_int
);
break
;
break
;
case
VLC_VAR_FLOAT
:
case
VLC_VAR_FLOAT
:
...
@@ -1222,7 +1220,7 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
...
@@ -1222,7 +1220,7 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
else
menutext
.
sprintf
(
"%.2f"
,
CURVAL
.
f_float
);
else
menutext
.
sprintf
(
"%.2f"
,
CURVAL
.
f_float
);
CreateAndConnect
(
submenu
,
psz_var
,
menutext
,
""
,
ITEM_RADIO
,
CreateAndConnect
(
submenu
,
psz_var
,
menutext
,
""
,
ITEM_RADIO
,
p_object
->
i_object_id
,
CURVAL
,
i_type
,
p_object
->
i_object_id
,
CURVAL
,
i_type
,
NOTCOMMAND
&&
CURVAL
.
f_float
==
val
.
f_float
);
CURVAL
.
f_float
==
val
.
f_float
);
break
;
break
;
default:
default:
...
@@ -1234,7 +1232,6 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
...
@@ -1234,7 +1232,6 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
/* clean up everything */
/* clean up everything */
var_Change
(
p_object
,
psz_var
,
VLC_VAR_FREELIST
,
&
val_list
,
&
text_list
);
var_Change
(
p_object
,
psz_var
,
VLC_VAR_FREELIST
,
&
val_list
,
&
text_list
);
#undef NOTCOMMAND
#undef CURVAL
#undef CURVAL
#undef CURTEXT
#undef CURTEXT
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
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