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
75a0a1de
Commit
75a0a1de
authored
Dec 06, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CodingStyle fixes, use ; when using macros and do not write it in the macro definition.
parent
5ffe7e00
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
16 deletions
+14
-16
include/vlc_playlist.h
include/vlc_playlist.h
+3
-3
modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/playlist_model.cpp
+1
-1
src/input/input.c
src/input/input.c
+1
-1
src/playlist/engine.c
src/playlist/engine.c
+9
-11
No files found.
include/vlc_playlist.h
View file @
75a0a1de
...
@@ -269,8 +269,8 @@ struct playlist_add_t
...
@@ -269,8 +269,8 @@ struct playlist_add_t
*****************************************************************************/
*****************************************************************************/
/* Helpers */
/* Helpers */
#define PL_LOCK vlc_object_lock( p_playlist )
;
#define PL_LOCK vlc_object_lock( p_playlist )
#define PL_UNLOCK vlc_object_unlock( p_playlist )
;
#define PL_UNLOCK vlc_object_unlock( p_playlist )
#define pl_Get( a ) a->p_libvlc->p_playlist
#define pl_Get( a ) a->p_libvlc->p_playlist
...
@@ -278,7 +278,7 @@ VLC_EXPORT( playlist_t *, __pl_Yield, ( vlc_object_t * ) );
...
@@ -278,7 +278,7 @@ VLC_EXPORT( playlist_t *, __pl_Yield, ( vlc_object_t * ) );
#define pl_Yield( a ) __pl_Yield( VLC_OBJECT(a) )
#define pl_Yield( a ) __pl_Yield( VLC_OBJECT(a) )
VLC_EXPORT
(
void
,
__pl_Release
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
,
__pl_Release
,
(
vlc_object_t
*
)
);
#define pl_Release(a) __pl_Release( VLC_OBJECT(a) )
;
#define pl_Release(a) __pl_Release( VLC_OBJECT(a) )
/* Playlist control */
/* Playlist control */
#define playlist_Play(p) playlist_Control(p,PLAYLIST_PLAY, VLC_FALSE )
#define playlist_Play(p) playlist_Control(p,PLAYLIST_PLAY, VLC_FALSE )
...
...
modules/gui/qt4/playlist_model.cpp
View file @
75a0a1de
...
@@ -913,7 +913,7 @@ void PLModel::sort( int column, Qt::SortOrder order )
...
@@ -913,7 +913,7 @@ void PLModel::sort( int column, Qt::SortOrder order )
order
==
Qt
::
AscendingOrder
?
order
==
Qt
::
AscendingOrder
?
ORDER_NORMAL
:
ORDER_REVERSE
);
ORDER_NORMAL
:
ORDER_REVERSE
);
}
}
PL_UNLOCK
PL_UNLOCK
;
rebuild
();
rebuild
();
}
}
...
...
src/input/input.c
View file @
75a0a1de
...
@@ -2095,7 +2095,7 @@ static void UpdateItemLength( input_thread_t *p_input, int64_t i_length )
...
@@ -2095,7 +2095,7 @@ static void UpdateItemLength( input_thread_t *p_input, int64_t i_length )
pl_Yield
(
p_input
);
pl_Yield
(
p_input
);
var_SetInteger
(
pl_Get
(
p_input
),
"item-change"
,
var_SetInteger
(
pl_Get
(
p_input
),
"item-change"
,
p_input
->
p
->
input
.
p_item
->
i_id
);
p_input
->
p
->
input
.
p_item
->
i_id
);
pl_Release
(
p_input
)
pl_Release
(
p_input
)
;
}
}
}
}
...
...
src/playlist/engine.c
View file @
75a0a1de
...
@@ -256,7 +256,7 @@ check_input:
...
@@ -256,7 +256,7 @@ check_input:
/* Release the playlist lock, because we may get stuck
/* Release the playlist lock, because we may get stuck
* in input_DestroyThread() for some time. */
* in input_DestroyThread() for some time. */
PL_UNLOCK
PL_UNLOCK
;
/* Destroy input */
/* Destroy input */
input_DestroyThread
(
p_input
);
input_DestroyThread
(
p_input
);
...
@@ -287,7 +287,7 @@ check_input:
...
@@ -287,7 +287,7 @@ check_input:
{
{
PL_DEBUG
(
"dying input"
);
PL_DEBUG
(
"dying input"
);
PL_UNLOCK
;
PL_UNLOCK
;
msleep
(
25000
);
/
/ 25 ms
msleep
(
25000
);
/
* 25 ms */
PL_LOCK
;
PL_LOCK
;
goto
check_input
;
goto
check_input
;
}
}
...
@@ -327,7 +327,7 @@ check_input:
...
@@ -327,7 +327,7 @@ check_input:
{
{
msg_Dbg
(
p_playlist
,
"nothing to play"
);
msg_Dbg
(
p_playlist
,
"nothing to play"
);
p_playlist
->
status
.
i_status
=
PLAYLIST_STOPPED
;
p_playlist
->
status
.
i_status
=
PLAYLIST_STOPPED
;
PL_UNLOCK
PL_UNLOCK
;
if
(
b_playexit
==
VLC_TRUE
)
if
(
b_playexit
==
VLC_TRUE
)
{
{
...
@@ -358,7 +358,7 @@ check_input:
...
@@ -358,7 +358,7 @@ check_input:
PL_LOCK
;
PL_LOCK
;
}
}
}
}
PL_UNLOCK
PL_UNLOCK
;
}
}
/** Playlist dying last loop */
/** Playlist dying last loop */
...
@@ -369,11 +369,10 @@ void playlist_LastLoop( playlist_t *p_playlist )
...
@@ -369,11 +369,10 @@ void playlist_LastLoop( playlist_t *p_playlist )
/* If there is an input, kill it */
/* If there is an input, kill it */
while
(
1
)
while
(
1
)
{
{
PL_LOCK
PL_LOCK
;
if
(
p_playlist
->
p_input
==
NULL
)
if
(
p_playlist
->
p_input
==
NULL
)
{
{
PL_UNLOCK
PL_UNLOCK
;
break
;
break
;
}
}
...
@@ -384,7 +383,7 @@ void playlist_LastLoop( playlist_t *p_playlist )
...
@@ -384,7 +383,7 @@ void playlist_LastLoop( playlist_t *p_playlist )
/* Unlink current input */
/* Unlink current input */
p_input
=
p_playlist
->
p_input
;
p_input
=
p_playlist
->
p_input
;
p_playlist
->
p_input
=
NULL
;
p_playlist
->
p_input
=
NULL
;
PL_UNLOCK
PL_UNLOCK
;
/* Destroy input */
/* Destroy input */
input_DestroyThread
(
p_input
);
input_DestroyThread
(
p_input
);
...
@@ -398,15 +397,14 @@ void playlist_LastLoop( playlist_t *p_playlist )
...
@@ -398,15 +397,14 @@ void playlist_LastLoop( playlist_t *p_playlist )
else
if
(
p_playlist
->
p_input
->
b_error
||
p_playlist
->
p_input
->
b_eof
)
else
if
(
p_playlist
->
p_input
->
b_error
||
p_playlist
->
p_input
->
b_eof
)
{
{
input_StopThread
(
p_playlist
->
p_input
);
input_StopThread
(
p_playlist
->
p_input
);
PL_UNLOCK
PL_UNLOCK
;
continue
;
continue
;
}
}
else
else
{
{
p_playlist
->
p_input
->
b_eof
=
1
;
p_playlist
->
p_input
->
b_eof
=
1
;
}
}
PL_UNLOCK
;
PL_UNLOCK
msleep
(
INTF_IDLE_SLEEP
);
msleep
(
INTF_IDLE_SLEEP
);
}
}
...
...
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