Commit 268f255b authored by bigben's avatar bigben
Browse files

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

* Fix enabling of the step forward/backward functions
parent f193ee64
...@@ -11,17 +11,18 @@ ...@@ -11,17 +11,18 @@
<key>2197</key> <key>2197</key>
<string>422 532 596 143 0 0 1440 878 </string> <string>422 532 596 143 0 0 1440 878 </string>
<key>29</key> <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> <key>915</key>
<string>777 479 187 249 0 0 1440 878 </string> <string>777 479 187 249 0 0 1440 878 </string>
</dict> </dict>
<key>IBFramework Version</key> <key>IBFramework Version</key>
<string>443.0</string> <string>439.0</string>
<key>IBLockedObjects</key> <key>IBLockedObjects</key>
<array/> <array/>
<key>IBOpenObjects</key> <key>IBOpenObjects</key>
<array> <array>
<integer>1789</integer> <integer>1789</integer>
<integer>29</integer>
</array> </array>
<key>IBSystem Version</key> <key>IBSystem Version</key>
<string>8H14</string> <string>8H14</string>
......
...@@ -669,13 +669,15 @@ ...@@ -669,13 +669,15 @@
[o_mi setState: i_state]; [o_mi setState: i_state];
} }
else if( [[o_mi title] isEqualToString: _NS("Step Forward")] || 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 ) if( p_input != NULL )
{ {
var_Get( p_input, "seekable", &val); var_Get( p_input, "seekable", &val);
bEnabled = val.b_bool; bEnabled = val.b_bool;
} }
else bEnabled = FALSE;
} }
else if( [[o_mi title] isEqualToString: _NS("Mute")] ) else if( [[o_mi title] isEqualToString: _NS("Mute")] )
{ {
......
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