Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0dbfd625
Commit
0dbfd625
authored
Dec 31, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flat_media_list_view.c: Add some debug facilities.
parent
9d7bb46d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/control/flat_media_list_view.c
src/control/flat_media_list_view.c
+2
-0
src/control/media_list.c
src/control/media_list.c
+10
-0
No files found.
src/control/flat_media_list_view.c
View file @
0dbfd625
...
...
@@ -52,6 +52,8 @@ ml_item_added( const libvlc_event_t * p_event, libvlc_media_list_view_t * p_mlv
int
index
=
vlc_array_count
(
&
p_mlv
->
p_this_view_data
->
array
);
libvlc_media_descriptor_t
*
p_md
=
p_event
->
u
.
media_list_item_added
.
item
;
libvlc_media_descriptor_retain
(
p_md
);
trace
(
"appending item at index %d
\n
"
,
index
);
libvlc_media_list_view_will_add_item
(
p_mlv
,
p_md
,
index
);
vlc_array_append
(
&
p_mlv
->
p_this_view_data
->
array
,
p_md
);
libvlc_media_list_view_item_added
(
p_mlv
,
p_md
,
index
);
...
...
src/control/media_list.c
View file @
0dbfd625
...
...
@@ -31,6 +31,14 @@ typedef enum EventPlaceInTime {
EventDidHappen
}
EventPlaceInTime
;
//#define DEBUG_MEDIA_LIST
#ifdef DEBUG_MEDIA_LIST
# define trace( fmt, ... ) printf( "%s(): " fmt, __FUNCTION__, ##__VA_ARGS__ )
#else
# define trace( ... )
#endif
/*
* Private functions
*/
...
...
@@ -53,6 +61,7 @@ notify_item_addition( libvlc_media_list_t * p_mlist,
/* Construct the event */
if
(
event_status
==
EventDidHappen
)
{
trace
(
"item was added at index %d
\n
"
,
index
);
event
.
type
=
libvlc_MediaListItemAdded
;
event
.
u
.
media_list_item_added
.
item
=
p_md
;
event
.
u
.
media_list_item_added
.
index
=
index
;
...
...
@@ -84,6 +93,7 @@ notify_item_deletion( libvlc_media_list_t * p_mlist,
/* Construct the event */
if
(
event_status
==
EventDidHappen
)
{
trace
(
"item at index %d was deleted
\n
"
,
index
);
event
.
type
=
libvlc_MediaListItemDeleted
;
event
.
u
.
media_list_item_deleted
.
item
=
p_md
;
event
.
u
.
media_list_item_deleted
.
index
=
index
;
...
...
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