Commit 268f255b authored by Benjamin Pracht's avatar Benjamin Pracht

* Only enable "Jump To Time" when the stream is seekable

* Fix enabling of the step forward/backward functions
parent f193ee64
......@@ -11,17 +11,18 @@
<key>2197</key>
<string>422 532 596 143 0 0 1440 878 </string>
<key>29</key>
<string>356 400 438 44 0 0 1440 878 </string>
<string>71 662 438 44 0 0 1024 746 </string>
<key>915</key>
<string>777 479 187 249 0 0 1440 878 </string>
</dict>
<key>IBFramework Version</key>
<string>443.0</string>
<string>439.0</string>
<key>IBLockedObjects</key>
<array/>
<key>IBOpenObjects</key>
<array>
<integer>1789</integer>
<integer>29</integer>
</array>
<key>IBSystem Version</key>
<string>8H14</string>
......
......@@ -605,7 +605,7 @@
@end
@implementation VLCControls (NSMenuValidation)
- (BOOL)validateMenuItem:(NSMenuItem *)o_mi
{
BOOL bEnabled = TRUE;
......@@ -640,7 +640,7 @@
{
bEnabled = FALSE;
}
[o_main setupMenus]; /* Make sure input menu is up to date */
[o_main setupMenus]; /* Make sure input menu is up to date */
}
else if( [[o_mi title] isEqualToString: _NS("Previous")] ||
[[o_mi title] isEqualToString: _NS("Next")] )
......@@ -669,18 +669,20 @@
[o_mi setState: i_state];
}
else if( [[o_mi title] isEqualToString: _NS("Step Forward")] ||
[[o_mi title] isEqualToString: _NS("Step Backward")] )
[[o_mi title] isEqualToString: _NS("Step Backward")] ||
[[o_mi title] isEqualToString: _NS("Jump To Time")])
{
if( p_input != NULL )
{
var_Get( p_input, "seekable", &val);
bEnabled = val.b_bool;
}
else bEnabled = FALSE;
}
else if( [[o_mi title] isEqualToString: _NS("Mute")] )
else if( [[o_mi title] isEqualToString: _NS("Mute")] )
{
[o_mi setState: p_intf->p_sys->b_mute ? NSOnState : NSOffState];
[o_main setupMenus]; /* Make sure audio menu is up to date */
[o_main setupMenus]; /* Make sure audio menu is up to date */
}
else if( [[o_mi title] isEqualToString: _NS("Half Size")] ||
[[o_mi title] isEqualToString: _NS("Normal Size")] ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment