[vlc-commits] dbus: simplify seek signal sending

Rémi Denis-Courmont git at videolan.org
Tue Nov 15 21:04:44 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 15 21:50:35 2016 +0200| [c90fc91a0ff42436c06fcba1aa57dfe09a55a66e] | committer: Rémi Denis-Courmont

dbus: simplify seek signal sending

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c90fc91a0ff42436c06fcba1aa57dfe09a55a66e
---

 modules/control/dbus/dbus.c | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index 9424126..c9a071a 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -92,7 +92,6 @@ typedef struct
 {
     int signal;
     int i_node;
-    int i_item;
 } callback_info_t;
 
 enum
@@ -616,20 +615,8 @@ static void ProcessEvents( intf_thread_t *p_intf,
             vlc_dictionary_insert( &player_properties, "CanPause", NULL );
             break;
         case SIGNAL_SEEK:
-        {
-            input_thread_t *p_input;
-            input_item_t *p_item;
-            p_input = pl_CurrentInput( p_intf );
-            if( p_input )
-            {
-                p_item = input_GetItem( p_input );
-                vlc_object_release( p_input );
-
-                if( p_item && ( p_item->i_id == p_events[i]->i_item ) )
-                    SeekedEmit( p_intf );
-            }
+            SeekedEmit( p_intf );
             break;
-        }
         default:
             vlc_assert_unreachable();
         }
@@ -946,7 +933,6 @@ static int InputCallback( vlc_object_t *p_this, const char *psz_var,
                 break;
 
             p_info->signal = SIGNAL_SEEK;
-            p_info->i_item = input_GetItem( p_input )->i_id;
             break;
         }
         default:



More information about the vlc-commits mailing list