Commit ab74d699 authored by Erwan Tulou's avatar Erwan Tulou
Browse files

skins2: adapt to latest change in playlist (activity variable)

It fixes skins2 crashing when an input is started.
parent 0f6fc6a2
......@@ -367,7 +367,7 @@ int VlcProc::onGenericCallback( vlc_object_t *pObj, const char *pVariable,
} \
}
ADD_CALLBACK_ENTRY( "activity", on_item_current_changed, false )
ADD_CALLBACK_ENTRY( "activity", on_activity_changed, false )
ADD_CALLBACK_ENTRY( "volume", on_volume_changed, true )
ADD_CALLBACK_ENTRY( "bit-rate", on_bit_rate_changed, false )
......@@ -444,10 +444,17 @@ int VlcProc::onGenericCallback2( vlc_object_t *pObj, const char *pVariable,
}
void VlcProc::on_item_current_changed( vlc_object_t* p_obj, vlc_value_t newVal )
void VlcProc::on_activity_changed( vlc_object_t* p_obj, vlc_value_t newVal )
{
(void)p_obj;
input_item_t *p_item = static_cast<input_item_t*>(newVal.p_address);
(void)p_obj; (void)newVal;
input_thread_t *p_input = getIntf()->p_sys->p_input;
if( !p_input )
return;
input_item_t *p_item = input_GetItem( p_input );
if( !p_item )
return;
// Update short name
char *psz_name = input_item_GetName( p_item );
......
......@@ -98,7 +98,7 @@ public:
/// update equalizer
void update_equalizer( );
void on_item_current_changed( vlc_object_t* p_obj, vlc_value_t newVal );
void on_activity_changed( vlc_object_t* p_obj, vlc_value_t newVal );
void on_intf_event_changed( vlc_object_t* p_obj, vlc_value_t newVal );
void on_bit_rate_changed( vlc_object_t* p_obj, vlc_value_t newVal );
void on_sample_rate_changed( vlc_object_t* p_obj, vlc_value_t newVal );
......
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