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
82120ce2
Commit
82120ce2
authored
Jun 22, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osx: fix crash with --no-media-library
parent
778091a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+5
-3
No files found.
modules/gui/macosx/MainWindow.m
View file @
82120ce2
...
@@ -914,7 +914,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -914,7 +914,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
-
(
NSInteger
)
sourceList
:(
PXSourceList
*
)
aSourceList
badgeValueForItem
:(
id
)
item
-
(
NSInteger
)
sourceList
:(
PXSourceList
*
)
aSourceList
badgeValueForItem
:(
id
)
item
{
{
playlist_t
*
p_playlist
=
pl_Get
(
VLCIntf
);
playlist_t
*
p_playlist
=
pl_Get
(
VLCIntf
);
NSInteger
i_playlist_size
;
NSInteger
i_playlist_size
=
0
;
if
([[
item
identifier
]
isEqualToString
:
@"playlist"
])
{
if
([[
item
identifier
]
isEqualToString
:
@"playlist"
])
{
PL_LOCK
;
PL_LOCK
;
...
@@ -925,7 +925,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -925,7 +925,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
}
}
if
([[
item
identifier
]
isEqualToString
:
@"medialibrary"
])
{
if
([[
item
identifier
]
isEqualToString
:
@"medialibrary"
])
{
PL_LOCK
;
PL_LOCK
;
i_playlist_size
=
p_playlist
->
p_ml_category
->
i_children
;
if
(
p_playlist
->
p_ml_category
)
i_playlist_size
=
p_playlist
->
p_ml_category
->
i_children
;
PL_UNLOCK
;
PL_UNLOCK
;
return
i_playlist_size
;
return
i_playlist_size
;
...
@@ -1014,7 +1015,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1014,7 +1015,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
if
([[
item
identifier
]
isEqualToString
:
@"playlist"
])
{
if
([[
item
identifier
]
isEqualToString
:
@"playlist"
])
{
[[[
VLCMain
sharedInstance
]
playlist
]
setPlaylistRoot
:
p_playlist
->
p_local_category
];
[[[
VLCMain
sharedInstance
]
playlist
]
setPlaylistRoot
:
p_playlist
->
p_local_category
];
}
else
if
([[
item
identifier
]
isEqualToString
:
@"medialibrary"
])
{
}
else
if
([[
item
identifier
]
isEqualToString
:
@"medialibrary"
])
{
[[[
VLCMain
sharedInstance
]
playlist
]
setPlaylistRoot
:
p_playlist
->
p_ml_category
];
if
(
p_playlist
->
p_ml_category
)
[[[
VLCMain
sharedInstance
]
playlist
]
setPlaylistRoot
:
p_playlist
->
p_ml_category
];
}
else
{
}
else
{
playlist_item_t
*
pl_item
;
playlist_item_t
*
pl_item
;
PL_LOCK
;
PL_LOCK
;
...
...
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