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
a7d57cdf
Commit
a7d57cdf
authored
Dec 09, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* make sure that the opened media is always enqueueded, if macosx-autoplay is false
parent
a94647f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+5
-2
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+5
-1
No files found.
modules/gui/macosx/intf.m
View file @
a7d57cdf
...
...
@@ -666,9 +666,12 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
BOOL
)
application
:(
NSApplication
*
)
o_app
openFile
:(
NSString
*
)
o_filename
{
BOOL
b_autoplay
=
config_GetInt
(
VLCIntf
,
"macosx-autoplay"
);
NSDictionary
*
o_dic
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
o_filename
,
@"ITEM_URL"
,
nil
];
[
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
];
return
(
TRUE
);
}
...
...
modules/gui/macosx/misc.m
View file @
a7d57cdf
...
...
@@ -175,6 +175,7 @@
NSArray
*
o_types
=
[
NSArray
arrayWithObjects
:
NSFilenamesPboardType
,
nil
];
NSString
*
o_desired_type
=
[
o_paste
availableTypeFromArray
:
o_types
];
NSData
*
o_carried_data
=
[
o_paste
dataForType
:
o_desired_type
];
BOOL
b_autoplay
=
config_GetInt
(
VLCIntf
,
"macosx-autoplay"
);
if
(
o_carried_data
)
{
...
...
@@ -191,7 +192,10 @@
o_dic
=
[
NSDictionary
dictionaryWithObject
:[
o_values
objectAtIndex
:
i
]
forKey
:
@"ITEM_URL"
];
o_array
=
[
o_array
arrayByAddingObject
:
o_dic
];
}
[[[
VLCMain
sharedInstance
]
getPlaylist
]
appendArray
:
o_array
atPos
:
-
1
enqueue
:
NO
];
if
(
b_autoplay
)
[[[
VLCMain
sharedInstance
]
getPlaylist
]
appendArray
:
o_array
atPos
:
-
1
enqueue
:
NO
];
else
[[[
VLCMain
sharedInstance
]
getPlaylist
]
appendArray
:
o_array
atPos
:
-
1
enqueue
:
YES
];
return
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