[vlc-devel] [vlc-commits] macosx: respect 'playlist-autostart' (close #7272)
David Fuhrmann
david.fuhrmann at gmail.com
Mon Jul 15 19:23:17 CEST 2013
Am 15.07.2013 um 12:35 schrieb git at videolan.org (Felix Paul Kühne):
> vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 15 12:35:42 2013 +0200| [dd212bfe22089604415aefa69b33cd8f354cd847] | committer: Felix Paul Kühne
>
> macosx: respect 'playlist-autostart' (close #7272)
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd212bfe22089604415aefa69b33cd8f354cd847
> ---
>
> modules/gui/macosx/intf.m | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
> index f850f81..41f6480 100644
> --- a/modules/gui/macosx/intf.m
> +++ b/modules/gui/macosx/intf.m
> @@ -824,6 +824,13 @@ static VLCMain *_o_sharedMainInstance = nil;
> [o_mainwindow updateWindow];
> [o_mainwindow updateTimeSlider];
> [o_mainwindow updateVolumeSlider];
> +
> + playlist_t * p_playlist = pl_Get(VLCIntf);
> + PL_LOCK;
> + BOOL kidsAround = p_playlist->p_local_category->i_children;
> + PL_UNLOCK;
> + if (kidsAround && var_GetBool(p_playlist, "playlist-autostart"))
> + [[self playlist] playItem:nil];
> }
Hi Felix,
I am wondering if this is implemented in core, already? At least when I search for the variable, its only used inside the core.
I assume that it works on other OS the way its implemented already.
So, it might be better to find a proper fix for the core?
Best regards,
David
More information about the vlc-devel
mailing list