Changeset 6b7540a5c18cdf46db2e21f4198ab2d2d14677e9
- Timestamp:
- 06/29/08 00:34:48
(2 months ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1214692488 +0200
- git-parent:
[8d65a7555d7cda5a871f104dc97d4ea963161903]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1214692477 +0200
- Message:
Don't try to use 10.5-only threading features on a 10.4u target. Fixes #1614 on OS X.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r6a5fc04 |
r6b7540a |
|
| 304 | 304 | NSSize o_size_with_playlist; |
|---|
| 305 | 305 | |
|---|
| 306 | | NSThread * manageThread; |
|---|
| 307 | | |
|---|
| 308 | 306 | int i_lastShownVolume; |
|---|
| 309 | 307 | |
|---|
| r1405cf7 |
r6b7540a |
|
| 796 | 796 | /* FIXME: don't poll */ |
|---|
| 797 | 797 | [NSTimer scheduledTimerWithTimeInterval: 0.5 |
|---|
| 798 | | target: self selector: @selector(manageIntf:) |
|---|
| 799 | | userInfo: nil repeats: FALSE]; |
|---|
| | 798 | target: self selector: @selector(manageIntf:) |
|---|
| | 799 | userInfo: nil repeats: FALSE]; |
|---|
| 800 | 800 | |
|---|
| 801 | 801 | /* FIXME: don't poll */ |
|---|
| 802 | | manageThread = [[NSThread alloc] initWithTarget:self selector:@selector(manage) |
|---|
| 803 | | object: nil]; |
|---|
| | 802 | [NSThread detachNewThreadSelector: @selector(manage) |
|---|
| | 803 | toTarget: self withObject: nil]; |
|---|
| 804 | 804 | |
|---|
| 805 | 805 | [o_controls setupVarMenuItem: o_mi_add_intf target: (vlc_object_t *)p_intf |
|---|
| … | … | |
| 1231 | 1231 | p_playlist = pl_Yield( p_intf ); |
|---|
| 1232 | 1232 | |
|---|
| | 1233 | var_AddCallback( p_playlist, "playlist-current", PlaylistChanged, self ); |
|---|
| 1233 | 1234 | var_AddCallback( p_playlist, "intf-change", PlaylistChanged, self ); |
|---|
| 1234 | 1235 | var_AddCallback( p_playlist, "item-change", PlaylistChanged, self ); |
|---|
| 1235 | 1236 | var_AddCallback( p_playlist, "item-append", PlaylistChanged, self ); |
|---|
| 1236 | 1237 | var_AddCallback( p_playlist, "item-deleted", PlaylistChanged, self ); |
|---|
| 1237 | | var_AddCallback( p_playlist, "playlist-current", PlaylistChanged, self ); |
|---|
| | 1238 | |
|---|
| | 1239 | // vlc_value_t val; |
|---|
| | 1240 | // var_Change( p_playlist, "playlist-current", VLC_VAR_CHOICESCOUNT, &val, NULL ); |
|---|
| 1238 | 1241 | |
|---|
| 1239 | 1242 | vlc_object_release( p_playlist ); |
|---|
| … | … | |
| 1248 | 1251 | p_intf->p_sys->p_input = p_playlist->p_input; |
|---|
| 1249 | 1252 | |
|---|
| 1250 | | /* Refresh the interface */ |
|---|
| | 1253 | /* Refresh the interface */ |
|---|
| 1251 | 1254 | if( p_intf->p_sys->p_input ) |
|---|
| 1252 | 1255 | { |
|---|
| … | … | |
| 1452 | 1455 | { |
|---|
| 1453 | 1456 | p_intf->p_sys->i_play_status = END_S; |
|---|
| 1454 | | p_intf->p_sys->b_intf_update = true; |
|---|
| 1455 | 1457 | p_intf->p_sys->b_playlist_update = true; |
|---|
| 1456 | 1458 | [self playStatusUpdated: p_intf->p_sys->i_play_status]; |
|---|
| … | … | |
| 1602 | 1604 | p_playlist->status.p_item->p_input->psz_name]; |
|---|
| 1603 | 1605 | [self setScrollField: o_temp stopAfter:-1]; |
|---|
| | 1606 | [[[self getControls] getFSPanel] setStreamTitle: o_temp]; |
|---|
| 1604 | 1607 | vlc_object_release( p_input ); |
|---|
| 1605 | 1608 | vlc_object_release( p_playlist ); |
|---|
| … | … | |
| 1778 | 1781 | msg_Dbg( p_intf, "Terminating" ); |
|---|
| 1779 | 1782 | |
|---|
| 1780 | | [manageThread cancel]; |
|---|
| 1781 | | [manageThread release]; |
|---|
| 1782 | | |
|---|
| 1783 | 1783 | /* make sure that the current volume is saved */ |
|---|
| 1784 | 1784 | config_PutInt( p_intf->p_libvlc, "volume", i_lastShownVolume ); |
|---|