Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b9c4dee2
Commit
b9c4dee2
authored
Nov 09, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* added an option to disable auto-playback of newly added items
parent
1d524052
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
+25
-5
modules/gui/macosx/macosx.m
modules/gui/macosx/macosx.m
+6
-0
modules/gui/macosx/open.h
modules/gui/macosx/open.h
+4
-1
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+15
-4
No files found.
modules/gui/macosx/macosx.m
View file @
b9c4dee2
...
...
@@ -78,6 +78,10 @@ void E_(CloseVideoGL) ( vlc_object_t * );
#define WIZARD_OPTIONS_SAVING_LONGTEXT N_("Remember the options in the " \
"wizard during one session of VLC.")
#define AUTOPLAY_OSX_TEST N_("Auto-playback of new items")
#define AUTOPLAY_OSX_LONGTEXT N_("Start playback of new items immediately " \
"once they were added." )
vlc_module_begin();
set_description( _("Mac OS X interface") );
set_capability( "interface", 100 );
...
...
@@ -86,6 +90,8 @@ vlc_module_begin();
set_subcategory( SUBCAT_INTERFACE_MAIN );
add_bool( "macosx-embedded", 1, NULL, EMBEDDED_TEXT, EMBEDDED_LONGTEXT,
VLC_FALSE );
add_bool( "macosx-autoplay", 1, NULL, AUTOPLAY_OSX_TEST, AUTOPLAY_OSX_LONGTEXT,
VLC_FALSE );
add_bool( "macosx-wizard-keep", 1, NULL, WIZARD_OPTIONS_SAVING_TEXT,
WIZARD_OPTIONS_SAVING_LONGTEXT, VLC_TRUE );
...
...
modules/gui/macosx/open.h
View file @
b9c4dee2
/*****************************************************************************
* open.h: MacOS X module for vlc
*****************************************************************************
* Copyright (C) 2002-200
5
the VideoLAN team
* Copyright (C) 2002-200
6
the VideoLAN team
* $Id$
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
* Felix Khne <fkuehne at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -95,6 +96,8 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
IBOutlet
id
o_output_ckbox
;
IBOutlet
id
o_sout_options
;
BOOL
*
b_autoplay
;
}
+
(
VLCOpen
*
)
sharedInstance
;
...
...
modules/gui/macosx/open.m
View file @
b9c4dee2
/*****************************************************************************
* open.m: MacOS X module for vlc
*****************************************************************************
* Copyright (C) 2002-200
5
the VideoLAN team
* Copyright (C) 2002-200
6
the VideoLAN team
* $Id$
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
* Benjamin Pracht <bigben at videolan dot org>
* Felix Khne <fkuehne at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -42,6 +43,7 @@
#include "playlist.h"
#include "open.h"
#include "output.h"
#import <vlc/intf.h>
/*****************************************************************************
* GetEjectableMediaOfClass
...
...
@@ -304,6 +306,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
-
(
void
)
openTarget
:(
int
)
i_type
{
int
i_result
;
intf_thread_t
*
p_intf
=
VLCIntf
;
b_autoplay
=
(
BOOL
*
)
config_GetInt
(
VLCIntf
,
"macosx-autoplay"
);
[
o_tabview
selectTabViewItemAtIndex
:
i_type
];
[
o_file_sub_ckbox
setState
:
NSOffState
];
...
...
@@ -320,7 +325,6 @@ static VLCOpen *_o_sharedMainInstance = nil;
o_dic
=
[
NSMutableDictionary
dictionaryWithObject
:
[
o_mrl
stringValue
]
forKey
:
@"ITEM_URL"
];
if
(
[
o_file_sub_ckbox
state
]
==
NSOnState
)
{
intf_thread_t
*
p_intf
=
VLCIntf
;
module_config_t
*
p_item
;
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"sub-file=%@"
,
[
o_file_sub_path
stringValue
]]];
...
...
@@ -360,7 +364,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
@"access-filter=timeshift"
]];
}
[
o_dic
setObject
:
(
NSArray
*
)[
o_options
copy
]
forKey
:
@"ITEM_OPTIONS"
];
[
o_playlist
appendArray
:
[
NSArray
arrayWithObject
:
o_dic
]
atPos
:
-
1
enqueue
:
NO
];
if
(
b_autoplay
)
[
o_playlist
appendArray
:
[
NSArray
arrayWithObject
:
o_dic
]
atPos
:
-
1
enqueue
:
NO
];
else
[
o_playlist
appendArray
:
[
NSArray
arrayWithObject
:
o_dic
]
atPos
:
-
1
enqueue
:
YES
];
}
}
...
...
@@ -731,6 +738,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
{
NSOpenPanel
*
o_open_panel
=
[
NSOpenPanel
openPanel
];
int
i
;
b_autoplay
=
(
BOOL
*
)
config_GetInt
(
VLCIntf
,
"macosx-autoplay"
);
[
o_open_panel
setAllowsMultipleSelection
:
YES
];
[
o_open_panel
setCanChooseDirectories
:
YES
];
...
...
@@ -750,7 +758,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
o_dic
=
[
NSDictionary
dictionaryWithObject
:[
o_values
objectAtIndex
:
i
]
forKey
:
@"ITEM_URL"
];
o_array
=
[
o_array
arrayByAddingObject
:
o_dic
];
}
[
o_playlist
appendArray
:
o_array
atPos
:
-
1
enqueue
:
NO
];
if
(
b_autoplay
)
[
o_playlist
appendArray
:
o_array
atPos
:
-
1
enqueue
:
NO
];
else
[
o_playlist
appendArray
:
o_array
atPos
:
-
1
enqueue
:
YES
];
}
}
...
...
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