]> git.sesse.net Git - vlc/commitdiff
enable rc logo-file on the fly
authorMark Moriarty <markfm@videolan.org>
Sun, 6 Mar 2005 16:27:35 +0000 (16:27 +0000)
committerMark Moriarty <markfm@videolan.org>
Sun, 6 Mar 2005 16:27:35 +0000 (16:27 +0000)
modules/control/rc.c

index 2411789e9de275b92e82518d1ad2edfb47fda5f5..5292aa204bfc2fdc252026784d6729caffa3b3f7 100644 (file)
@@ -419,6 +419,8 @@ static void Run( intf_thread_t *p_intf )
     var_AddCallback( p_intf, "time-size", Other, NULL );
     
     /* logo on the fly items */
+    var_Create( p_intf, "logo-file", VLC_VAR_VOID | VLC_VAR_ISCOMMAND );
+    var_AddCallback( p_intf, "logo-file", Other, NULL );
     var_Create( p_intf, "logo-x", VLC_VAR_INTEGER | VLC_VAR_ISCOMMAND );
     var_AddCallback( p_intf, "logo-x", Other, NULL );
     var_Create( p_intf, "logo-y", VLC_VAR_INTEGER | VLC_VAR_ISCOMMAND );
@@ -736,6 +738,7 @@ static void Run( intf_thread_t *p_intf )
                 msg_rc(_("| time-opacity # . . . . . . . . . . . . . opacity\n"));
                 msg_rc(_("| time-size # . . . . . . . . font size, in pixels\n"));
                 msg_rc(  "| \n");
+                msg_rc(_("| logo-file STRING . . . the overlay file path/name\n"));
                 msg_rc(_("| logo-x X . . . . . . . . . . . .offset from left\n"));
                 msg_rc(_("| logo-y Y . . . . . . . . . . . . offset from top\n"));
                 msg_rc(_("| logo-position #. . . . . . . . relative position\n"));
@@ -1232,6 +1235,14 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
             var_Set( p_inp->p_libvlc, "time-size", val );
         }
     }
+    else if( !strcmp( psz_cmd, "logo-file" ) )
+    {
+        if( strlen( newval.psz_string ) > 0 )
+        {
+            val.psz_string = newval.psz_string;
+            var_Set( p_inp->p_libvlc, "logo-file", val );
+        }
+    }
     else if( !strcmp( psz_cmd, "logo-x" ) )
     {
         if( strlen( newval.psz_string ) > 0)