Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
92bbd4ea
Commit
92bbd4ea
authored
Nov 25, 2003
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDA Interface:
- Fixed a p_playlist refcount problem - Clearing VLC playlist and Playlist widget.
parent
66a79530
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
6 deletions
+39
-6
modules/gui/pda/pda.c
modules/gui/pda/pda.c
+2
-1
modules/gui/pda/pda_callbacks.c
modules/gui/pda/pda_callbacks.c
+37
-5
No files found.
modules/gui/pda/pda.c
View file @
92bbd4ea
...
...
@@ -2,7 +2,7 @@
* pda.c : PDA Gtk2 plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: pda.c,v 1.1
0 2003/11/21 09:23:49
jpsaman Exp $
* $Id: pda.c,v 1.1
1 2003/11/25 20:41:35
jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
* Marc Ariberti <marcari@videolan.org>
...
...
@@ -436,6 +436,7 @@ static int Manage( intf_thread_t *p_intf )
PlaylistRebuildListStore
(
p_liststore
,
p_playlist
);
msg_Dbg
(
p_intf
,
"Manage: Updating GtkTreeView Playlist"
);
gtk_tree_view_set_model
(
p_intf
->
p_sys
->
p_tvplaylist
,
(
GtkTreeModel
*
)
p_liststore
);
vlc_object_release
(
p_playlist
);
}
}
...
...
modules/gui/pda/pda_callbacks.c
View file @
92bbd4ea
...
...
@@ -2,7 +2,7 @@
* pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: pda_callbacks.c,v 1.1
6 2003/11/25 20:01:08
jpsaman Exp $
* $Id: pda_callbacks.c,v 1.1
7 2003/11/25 20:41:35
jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -124,19 +124,20 @@ void PlaylistAddItem(GtkWidget *widget, gchar *name)
#if 0
if (p_intf->p_sys->b_autoplayfile)
{
playlist_Add( p_playlist, (char*)name, 0, 0,
playlist_Add( p_playlist, (c
onst c
har*)name, 0, 0,
PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END);
}
else
{
playlist_Add( p_playlist, (char*)name, 0, 0,
playlist_Add( p_playlist, (c
onst c
har*)name, 0, 0,
PLAYLIST_APPEND, PLAYLIST_END );
}
#endif
vlc_object_release
(
p_playlist
);
msg_Dbg
(
p_intf
,
"done"
);
}
}
vlc_object_release
(
p_playlist
);
}
void
PlaylistRebuildListStore
(
GtkListStore
*
p_list
,
playlist_t
*
p_playlist
)
...
...
@@ -767,8 +768,39 @@ onClearPlaylist (GtkButton *button,
gpointer
user_data
)
{
intf_thread_t
*
p_intf
=
GtkGetIntf
(
button
);
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
GtkTreeView
*
p_tvplaylist
;
int
item
;
msg_Dbg
(
p_intf
,
"Clear VLC playlist"
);
msg_Dbg
(
p_intf
,
"Clear playlist"
);
if
(
p_playlist
==
NULL
)
{
return
;
}
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
for
(
item
=
p_playlist
->
i_size
-
1
;
item
>=
0
;
item
--
)
{
playlist_Delete
(
p_playlist
,
item
);
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
vlc_object_release
(
p_playlist
);
// Remove all entries from the Playlist widget.
msg_Dbg
(
p_intf
,
"Clear playlist widget"
);
p_tvplaylist
=
(
GtkTreeView
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"tvPlaylist"
);
if
(
p_tvplaylist
)
{
GtkTreeModel
*
p_play_model
;
p_play_model
=
gtk_tree_view_get_model
(
p_tvplaylist
);
if
(
p_play_model
)
{
gtk_list_store_clear
(
GTK_LIST_STORE
(
p_play_model
));
}
}
}
...
...
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