Commit 39d5cebe authored by Thomas Guillem's avatar Thomas Guillem

QTFIXUP

parent 70a94ef9
......@@ -635,7 +635,7 @@ void ExtV4l2::showEvent( QShowEvent *event )
void ExtV4l2::Refresh( void )
{
vlc_object_t *p_obj = p_intf->p_sys->p_player;
vlc_object_t *p_obj = (vlc_object_t *)p_intf->p_sys->p_player;
help->hide();
if( box )
{
......@@ -795,7 +795,7 @@ void ExtV4l2::ValueChange( bool value )
void ExtV4l2::ValueChange( int value )
{
QObject *s = sender();
vlc_object_t *p_obj = p_intf->p_sys->p_player;
vlc_object_t *p_obj = (vlc_object_t *)p_intf->p_sys->p_player;
if( p_obj )
{
QString var = s->objectName();
......@@ -1241,8 +1241,7 @@ void Equalizer::enable2Pass( bool b_enable )
if( p_aout )
{
var_SetBool( p_aout, "equalizer-2pass", b_enable );
vlc_object_release( p_aout );
var_SetBool( p_aout.get(), "equalizer-2pass", b_enable );
}
emit configChanged( qfu( "equalizer-2pass" ), QVariant( b_enable ) );
}
......@@ -1561,8 +1560,7 @@ void SyncControls::subsdelaySetFactor( double f_factor )
PlayerController::VoutPtrList p_vouts = THEMIM->getVouts();
for( auto p_vout: p_vouts )
{
var_SetFloat( p_vout, SUBSDELAY_CFG_FACTOR, f_factor );
vlc_object_release( p_vout );
var_SetFloat( p_vout.get(), SUBSDELAY_CFG_FACTOR, f_factor );
}
}
......
......@@ -925,14 +925,14 @@ void PlayerController::littlefaster()
{
Q_D(PlayerController);
msg_Info( d->p_intf, "littlefaster");
var_SetInteger( d->p_intf->obj.libvlc, "key-action", ACTIONID_RATE_FASTER_FINE );
var_SetInteger( vlc_object_instance(d->p_intf), "key-action", ACTIONID_RATE_FASTER_FINE );
}
void PlayerController::littleslower()
{
Q_D(PlayerController);
msg_Info( d->p_intf, "littleslower");
var_SetInteger( d->p_intf->obj.libvlc, "key-action", ACTIONID_RATE_SLOWER_FINE );
var_SetInteger( vlc_object_instance(d->p_intf), "key-action", ACTIONID_RATE_SLOWER_FINE );
}
void PlayerController::normalRate()
......@@ -1345,7 +1345,7 @@ void PlayerController::requestArtUpdate( input_item_t *p_item, bool b_forced )
if ( status & ( ITEM_ART_NOTFOUND|ITEM_ART_FETCHED ) )
return;
}
libvlc_ArtRequest( d->p_intf->obj.libvlc, p_item,
libvlc_ArtRequest( vlc_object_instance(d->p_intf), p_item,
(b_forced) ? META_REQUEST_OPTION_SCOPE_ANY
: META_REQUEST_OPTION_NONE,
NULL, NULL );
......
......@@ -442,7 +442,7 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider )
/* set up the playlist to work on */
if( isDialogProvider )
p_sys->p_playlist = vlc_intf_GetMainPlaylist( (intf_thread_t *)p_intf->obj.parent );
p_sys->p_playlist = vlc_intf_GetMainPlaylist( (intf_thread_t *)vlc_object_parent(p_intf) );
else
p_sys->p_playlist = vlc_intf_GetMainPlaylist( p_intf );
p_sys->p_player = vlc_playlist_GetPlayer( p_sys->p_playlist );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment