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
0e7418b8
Commit
0e7418b8
authored
Jun 22, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins / skins2: compilation fixes.
parent
07743d45
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
18 deletions
+35
-18
modules/gui/skins/src/skin_main.cpp
modules/gui/skins/src/skin_main.cpp
+17
-9
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+1
-0
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+8
-4
modules/gui/skins2/vars/stream.cpp
modules/gui/skins2/vars/stream.cpp
+3
-2
modules/gui/skins2/vars/time.cpp
modules/gui/skins2/vars/time.cpp
+6
-3
No files found.
modules/gui/skins/src/skin_main.cpp
View file @
0e7418b8
...
@@ -353,8 +353,6 @@ int SkinManage( intf_thread_t *p_intf )
...
@@ -353,8 +353,6 @@ int SkinManage( intf_thread_t *p_intf )
{
{
input_thread_t
*
p_input
=
p_intf
->
p_sys
->
p_input
;
input_thread_t
*
p_input
=
p_intf
->
p_sys
->
p_input
;
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
// Refresh sound volume
// Refresh sound volume
audio_volume_t
volume
;
audio_volume_t
volume
;
...
@@ -367,19 +365,18 @@ int SkinManage( intf_thread_t *p_intf )
...
@@ -367,19 +365,18 @@ int SkinManage( intf_thread_t *p_intf )
p_intf
->
p_sys
->
p_theme
->
EvtBank
->
Get
(
"volume_refresh"
),
p_intf
->
p_sys
->
p_theme
->
EvtBank
->
Get
(
"volume_refresh"
),
(
long
)(
volume
*
SLIDER_RANGE
/
(
AOUT_VOLUME_DEFAULT
*
2
)
)
);
(
long
)(
volume
*
SLIDER_RANGE
/
(
AOUT_VOLUME_DEFAULT
*
2
)
)
);
#if 1
#warning "FIXME!"
#else
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
// Refresh slider
// Refresh slider
// if( p_input->stream.b_seekable && p_intf->p_sys->b_playing )
// if( p_input->stream.b_seekable && p_intf->p_sys->b_playing )
#define p_area p_input->stream.p_selected_area
#define p_area p_input->stream.p_selected_area
if
(
p_input
->
stream
.
b_seekable
&&
p_area
->
i_size
)
if
(
p_input
->
stream
.
b_seekable
&&
p_area
->
i_size
)
#endif
{
{
// Set value of sliders
long
Value
=
SLIDER_RANGE
*
p_area
->
i_tell
/
p_area
->
i_size
;
// Update sliders
OSAPI_PostMessage
(
NULL
,
CTRL_SET_SLIDER
,
(
unsigned
int
)
p_intf
->
p_sys
->
p_theme
->
EvtBank
->
Get
(
"time"
),
(
long
)
Value
);
// Text char * for updating text controls
// Text char * for updating text controls
char
*
text
=
new
char
[
MSTRTIME_MAX_SIZE
];
char
*
text
=
new
char
[
MSTRTIME_MAX_SIZE
];
...
@@ -388,6 +385,13 @@ int SkinManage( intf_thread_t *p_intf )
...
@@ -388,6 +385,13 @@ int SkinManage( intf_thread_t *p_intf )
i_seconds
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"time"
)
/
I64C
(
1000000
);
i_seconds
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"time"
)
/
I64C
(
1000000
);
i_length
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"length"
)
/
I64C
(
1000000
);
i_length
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"length"
)
/
I64C
(
1000000
);
// Set value of sliders
long
Value
=
SLIDER_RANGE
*
i_seconds
/
i_length
;
// Update sliders
OSAPI_PostMessage
(
NULL
,
CTRL_SET_SLIDER
,
(
unsigned
int
)
p_intf
->
p_sys
->
p_theme
->
EvtBank
->
Get
(
"time"
),
(
long
)
Value
);
// Create end time text
// Create end time text
secstotimestr
(
&
text
[
1
],
i_length
-
i_seconds
);
secstotimestr
(
&
text
[
1
],
i_length
-
i_seconds
);
text
[
0
]
=
'-'
;
text
[
0
]
=
'-'
;
...
@@ -409,7 +413,11 @@ int SkinManage( intf_thread_t *p_intf )
...
@@ -409,7 +413,11 @@ int SkinManage( intf_thread_t *p_intf )
#undef p_area
#undef p_area
}
}
#warning "FIXME!"
#if 0
vlc_mutex_unlock( &p_input->stream.stream_lock );
vlc_mutex_unlock( &p_input->stream.stream_lock );
#endif
}
}
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
...
...
modules/gui/skins2/src/skin_main.cpp
View file @
0e7418b8
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
*****************************************************************************/
*****************************************************************************/
#include <stdlib.h>
#include <stdlib.h>
#include <vlc/input.h>
#include "dialogs.hpp"
#include "dialogs.hpp"
#include "os_factory.hpp"
#include "os_factory.hpp"
#include "os_loop.hpp"
#include "os_loop.hpp"
...
...
modules/gui/skins2/src/vlcproc.cpp
View file @
0e7418b8
...
@@ -192,7 +192,8 @@ void VlcProc::manage()
...
@@ -192,7 +192,8 @@ void VlcProc::manage()
if
(
pInput
&&
!
pInput
->
b_die
)
if
(
pInput
&&
!
pInput
->
b_die
)
{
{
// Refresh time variables
// Refresh time variables
if
(
pInput
->
stream
.
b_seekable
)
#warning "FIXME!"
if
(
true
/* pInput->stream.b_seekable */
)
{
{
// Refresh position in the stream
// Refresh position in the stream
vlc_value_t
pos
;
vlc_value_t
pos
;
...
@@ -213,7 +214,9 @@ void VlcProc::manage()
...
@@ -213,7 +214,9 @@ void VlcProc::manage()
pVarPlaying
->
set
(
status
==
PLAYLIST_RUNNING
);
pVarPlaying
->
set
(
status
==
PLAYLIST_RUNNING
);
pVarStopped
->
set
(
status
==
PLAYLIST_STOPPED
);
pVarStopped
->
set
(
status
==
PLAYLIST_STOPPED
);
pVarPaused
->
set
(
status
==
PLAYLIST_PAUSED
);
pVarPaused
->
set
(
status
==
PLAYLIST_PAUSED
);
pVarSeekable
->
set
(
pInput
->
stream
.
b_seekable
);
#warning "FIXME!"
pVarSeekable
->
set
(
true
/* pInput->stream.b_seekable */
);
}
}
else
else
{
{
...
@@ -291,11 +294,12 @@ int VlcProc::onPlaylistChange( vlc_object_t *pObj, const char *pVariable,
...
@@ -291,11 +294,12 @@ int VlcProc::onPlaylistChange( vlc_object_t *pObj, const char *pVariable,
if
(
p_playlist
->
p_input
)
if
(
p_playlist
->
p_input
)
{
{
// Create a command to update the stream variable
// Create a command to update the stream variable
// XXX: we should not need to access p_inpu->psz_source directly, a
// XXX: we should not need to access p_inpu
t
->psz_source directly, a
// getter should be provided by VLC core
// getter should be provided by VLC core
Stream
*
pStream
=
(
Stream
*
)
pThis
->
m_cVarStream
.
get
();
Stream
*
pStream
=
(
Stream
*
)
pThis
->
m_cVarStream
.
get
();
#warning "FIXME!"
UString
srcName
(
pThis
->
getIntf
(),
UString
srcName
(
pThis
->
getIntf
(),
p_playlist
->
p_input
->
psz_source
);
p_playlist
->
p_input
->
input
.
p_item
->
psz_uri
);
CmdSetStream
*
pCmd
=
new
CmdSetStream
(
pThis
->
getIntf
(),
*
pStream
,
CmdSetStream
*
pCmd
=
new
CmdSetStream
(
pThis
->
getIntf
(),
*
pStream
,
srcName
,
false
);
srcName
,
false
);
// Push the command in the asynchronous command queue
// Push the command in the asynchronous command queue
...
...
modules/gui/skins2/vars/stream.cpp
View file @
0e7418b8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* time.cpp
* time.cpp
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id
: time.cpp 6996 2004-03-07 12:55:32Z ipkiss
$
* $Id$
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
*
*
...
@@ -72,7 +72,8 @@ const string Stream::getAsStringFullName() const
...
@@ -72,7 +72,8 @@ const string Stream::getAsStringFullName() const
}
}
else
else
{
{
ret
=
getIntf
()
->
p_sys
->
p_playlist
->
p_input
->
psz_source
;
#warning "FIXME!"
ret
=
getIntf
()
->
p_sys
->
p_playlist
->
p_input
->
input
.
p_item
->
psz_uri
;
}
}
return
ret
;
return
ret
;
...
...
modules/gui/skins2/vars/time.cpp
View file @
0e7418b8
...
@@ -58,8 +58,9 @@ const string StreamTime::getAsStringPercent() const
...
@@ -58,8 +58,9 @@ const string StreamTime::getAsStringPercent() const
const
string
StreamTime
::
getAsStringCurrTime
()
const
const
string
StreamTime
::
getAsStringCurrTime
()
const
{
{
#warning "FIXME!"
if
(
getIntf
()
->
p_sys
->
p_input
==
NULL
||
if
(
getIntf
()
->
p_sys
->
p_input
==
NULL
||
!
getIntf
()
->
p_sys
->
p_input
->
stream
.
b_seekable
)
/* !getIntf()->p_sys->p_input->stream.b_seekable */
0
)
{
{
return
"-:--:--"
;
return
"-:--:--"
;
}
}
...
@@ -73,8 +74,9 @@ const string StreamTime::getAsStringCurrTime() const
...
@@ -73,8 +74,9 @@ const string StreamTime::getAsStringCurrTime() const
const
string
StreamTime
::
getAsStringTimeLeft
()
const
const
string
StreamTime
::
getAsStringTimeLeft
()
const
{
{
#warning "FIXME!"
if
(
getIntf
()
->
p_sys
->
p_input
==
NULL
||
if
(
getIntf
()
->
p_sys
->
p_input
==
NULL
||
!
getIntf
()
->
p_sys
->
p_input
->
stream
.
b_seekable
)
/* !getIntf()->p_sys->p_input->stream.b_seekable */
0
)
{
{
return
"-:--:--"
;
return
"-:--:--"
;
}
}
...
@@ -89,8 +91,9 @@ const string StreamTime::getAsStringTimeLeft() const
...
@@ -89,8 +91,9 @@ const string StreamTime::getAsStringTimeLeft() const
const
string
StreamTime
::
getAsStringDuration
()
const
const
string
StreamTime
::
getAsStringDuration
()
const
{
{
#warning "FIXME!"
if
(
getIntf
()
->
p_sys
->
p_input
==
NULL
||
if
(
getIntf
()
->
p_sys
->
p_input
==
NULL
||
!
getIntf
()
->
p_sys
->
p_input
->
stream
.
b_seekable
)
/* !getIntf()->p_sys->p_input->stream.b_seekable */
0
)
{
{
return
"-:--:--"
;
return
"-:--:--"
;
}
}
...
...
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