Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f3c51639
Commit
f3c51639
authored
Nov 20, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash in bookmarks
parent
49bfcb1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/control/hotkeys.c
modules/control/hotkeys.c
+7
-4
No files found.
modules/control/hotkeys.c
View file @
f3c51639
...
...
@@ -685,10 +685,13 @@ static void SetBookmark( intf_thread_t *p_intf, int i_num )
sprintf
(
psz_bookmark_name
,
"bookmark%i"
,
i_num
);
var_Create
(
p_intf
,
psz_bookmark_name
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
val
.
psz_string
=
strdup
(
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
input
.
psz_uri
);
var_Set
(
p_intf
,
psz_bookmark_name
,
val
);
msg_Info
(
p_intf
,
"setting playlist bookmark %i to %s"
,
i_num
,
val
.
psz_string
);
if
(
p_playlist
->
status
.
p_item
)
{
val
.
psz_string
=
strdup
(
p_playlist
->
status
.
p_item
->
input
.
psz_uri
);
var_Set
(
p_intf
,
psz_bookmark_name
,
val
);
msg_Info
(
p_intf
,
"setting playlist bookmark %i to %s"
,
i_num
,
val
.
psz_string
);
}
vlc_object_release
(
p_playlist
);
}
}
...
...
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