]> git.sesse.net Git - vlc/commitdiff
* ./plugins/chroma/i420_rgb8.c: fixed a warning.
authorSam Hocevar <sam@videolan.org>
Tue, 19 Mar 2002 00:30:44 +0000 (00:30 +0000)
committerSam Hocevar <sam@videolan.org>
Tue, 19 Mar 2002 00:30:44 +0000 (00:30 +0000)
  * ./plugins/filter/deinterlace.c: fixed chroma deinterlacing.
  * ./plugins/kde/kde.cpp: the KDE interface compiles again.
  * ./plugins/mpeg_system/mpeg_es.c: fixed a segfault I introduced today.
  * ./plugins/network/ipv4.c: cosmetic fix.
  * ./src/interface/main.c: fixed a typo in the --help output.
  * ./src/misc/netutils.c: fixed a segfault in the vlcs communication; still
    unstable but solving other bugs won't do any good without rewriting the
    whole playlist code. Which I'm doing right now.

plugins/chroma/i420_rgb8.c
plugins/filter/deinterlace.c
plugins/kde/kde.cpp
plugins/kde/kde_interface.cpp
plugins/mpeg_system/mpeg_es.c
plugins/network/ipv4.c
src/interface/main.c
src/misc/netutils.c

index b27fa6ae6392598be86f072cac0421ed0b9f5aeb..64efaf61dedffc7c27d98b5b1e6b332bf3716308 100644 (file)
@@ -2,7 +2,7 @@
  * i420_rgb8.c : YUV to bitmap RGB conversion module for vlc
  *****************************************************************************
  * Copyright (C) 2000 VideoLAN
- * $Id: i420_rgb8.c,v 1.3 2002/03/17 17:00:38 sam Exp $
+ * $Id: i420_rgb8.c,v 1.4 2002/03/19 00:30:44 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -56,7 +56,6 @@ void _M( I420_RGB8 )( vout_thread_t *p_vout, picture_t *p_src,
     int         i_x, i_y;                 /* horizontal and vertical indexes */
     int         i_real_y;                                           /* y % 4 */
     int         i_right_margin;
-    int         i_rewind;
     int         i_scale_count;                       /* scale modulo counter */
     int         i_chroma_width = p_vout->render.i_width / 2; /* chroma width */
 
@@ -110,8 +109,8 @@ void _M( I420_RGB8 )( vout_thread_t *p_vout, picture_t *p_src,
  * SetOffset: build offset array for conversion functions
  *****************************************************************************
  * This function will build an offset array used in later conversion functions.
- * It will also set horizontal and vertical scaling indicators. If b_double
- * is set, the p_offset structure has interleaved Y and U/V offsets.
+ * It will also set horizontal and vertical scaling indicators. The p_offset
+ * structure has interleaved Y and U/V offsets.
  *****************************************************************************/
 static void SetOffset( int i_width, int i_height, int i_pic_width,
                        int i_pic_height, boolean_t *pb_hscale,
index cab0d6226e265957a3d8c367c84d59cf3ef66b4c..0b508dc88fbe51d499165ba88655a59fb34b6063 100644 (file)
@@ -2,7 +2,7 @@
  * deinterlace.c : deinterlacer plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: deinterlace.c,v 1.7 2002/03/11 07:23:09 gbazin Exp $
+ * $Id: deinterlace.c,v 1.8 2002/03/19 00:30:44 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -350,24 +350,6 @@ static void vout_Render ( vout_thread_t *p_vout, picture_t *p_pic )
                     break;
 
                 case DEINTERLACE_MODE_BLEND:
-                    if( i_plane != Y_PLANE )
-                    {
-                        for( ; p_out < p_out_end ; )
-                        {
-                            FAST_MEMCPY( p_out, p_in,
-                                         p_pic->p[i_plane].i_pitch );
-
-                            p_out += p_pic->p[i_plane].i_pitch;
-
-                            FAST_MEMCPY( p_out, p_in,
-                                         p_pic->p[i_plane].i_pitch );
-
-                            p_out += p_pic->p[i_plane].i_pitch;
-                            p_in += 2 * p_pic->p[i_plane].i_pitch;
-                        }
-                        break;
-                    }
-
                     if( i_field == 0 )
                     {
                         FAST_MEMCPY( p_out, p_in, p_pic->p[i_plane].i_pitch );
@@ -375,6 +357,8 @@ static void vout_Render ( vout_thread_t *p_vout, picture_t *p_pic )
                         p_out += p_pic->p[i_plane].i_pitch;
                     }
 
+                    p_out_end -= p_outpic->p[i_plane].i_pitch;
+
                     for( ; p_out < p_out_end ; )
                     {
                         FAST_MEMCPY( p_out, p_in, p_pic->p[i_plane].i_pitch );
@@ -388,6 +372,15 @@ static void vout_Render ( vout_thread_t *p_vout, picture_t *p_pic )
                         p_in += 2 * p_pic->p[i_plane].i_pitch;
                         p_out += p_pic->p[i_plane].i_pitch;
                     }
+
+#if 0
+                    if( i_field == 0 )
+                    {
+                        p_in -= 2 * p_pic->p[i_plane].i_pitch;
+                        FAST_MEMCPY( p_out, p_in, p_pic->p[i_plane].i_pitch );
+                    }
+#endif
+
                     break;
                 }
                 break;
index da414e8fcef32a0c5e2a843a9b0f5c25016b0551..fa17841fe762afbfc793a6a47fe0441f63505617 100644 (file)
@@ -2,7 +2,7 @@
  * kde.cpp : KDE plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: kde.cpp,v 1.9 2002/03/17 17:00:38 sam Exp $
+ * $Id: kde.cpp,v 1.10 2002/03/19 00:30:44 sam Exp $
  *
  * Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
  *
@@ -94,7 +94,6 @@ class KThread
         ~KThread();
 
         // These methods get exported to the core
-        static int     probe   ( probedata_t *p_data );
         static int     open    ( intf_thread_t *p_intf );
         static void    close   ( intf_thread_t *p_intf );
         static void    run     ( intf_thread_t *p_intf );
@@ -105,7 +104,6 @@ class KThread
  *****************************************************************************/
 static void intf_getfunctions( function_list_t * p_function_list )
 {
-    p_function_list->pf_probe = KThread::probe;
     p_function_list->functions.intf.pf_open  = KThread::open;
     p_function_list->functions.intf.pf_close = KThread::close;
     p_function_list->functions.intf.pf_run   = KThread::run;
@@ -170,17 +168,6 @@ KThread::~KThread()
     delete p_intf->p_sys->p_about;
 }
 
-/*****************************************************************************
- * KThread::probe: probe the interface and return a score
- *****************************************************************************
- * This function tries to initialize KDE and returns a score to the
- * plugin manager so that it can select the best plugin.
- *****************************************************************************/
-int KThread::probe(probedata_t *p_data )
-{
-    return ( 80 );
-}
-
 /*****************************************************************************
  * KThread::open: initialize and create window
  *****************************************************************************/
index 8c6db28d93e1aa45241aad0123dfdbd5cd855c5c..9d1d1d290d52c1e0c365690cb176fc3ebb4925d4 100644 (file)
@@ -286,9 +286,10 @@ void KInterface::slotOpenDisk()
         source += ':';
         source += fDiskDialog->device();
 
-        // Select title and chapter
-        config_PutIntVariable( INPUT_TITLE_VAR, fDiskDialog->title() );
-        config_PutIntVariable( INPUT_CHAPTER_VAR, fDiskDialog->chapter() );
+        source += '@';
+        source += fDiskDialog->title();
+        source += ',';
+        source += fDiskDialog->chapter();
 
         // add it to playlist
         intf_PlaylistAdd( p_main->p_playlist, PLAYLIST_END, source.latin1() );
index c64254da817b13d07b5e40969b0cd4eab98a286c..1a42bf074ce6d48b5728a9eacb5749d6e6141493 100644 (file)
@@ -2,7 +2,7 @@
  * mpeg_es.c : Elementary Stream input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: mpeg_es.c,v 1.6 2002/03/18 19:14:52 sam Exp $
+ * $Id: mpeg_es.c,v 1.7 2002/03/19 00:30:44 sam Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -113,7 +113,7 @@ static int ESInit( input_thread_t * p_input )
 
     if( *p_peek || *(p_peek + 1) || *(p_peek + 2) != 1 )
     {
-        if( *p_input->psz_demux && strncmp( !p_input->psz_demux, "es", 3 ) )
+        if( *p_input->psz_demux && !strncmp( p_input->psz_demux, "es", 3 ) )
         {
             /* User forced */
             intf_ErrMsg( "input error: this doesn't look like an MPEG ES stream, continuing" );
@@ -126,7 +126,7 @@ static int ESInit( input_thread_t * p_input )
     }
     else if( *(p_peek + 3) > 0xb9 )
     {
-        if( *p_input->psz_demux && strncmp( !p_input->psz_demux, "es", 3 ) )
+        if( *p_input->psz_demux && !strncmp( p_input->psz_demux, "es", 3 ) )
         {
             /* User forced */
             intf_ErrMsg( "input error: this seems to be a system stream (PS plug-in ?), but continuing" );
index 4a875438571402458b3b4c70b86cd695eb6e148b..4f79873162c9c951d3cb513ff70937a5ac4270b8 100644 (file)
@@ -2,7 +2,7 @@
  * ipv4.c: IPv4 network abstraction layer
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: ipv4.c,v 1.6 2002/03/15 04:41:54 sam Exp $
+ * $Id: ipv4.c,v 1.7 2002/03/19 00:30:44 sam Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Mathias Kretschmer <mathias@research.att.com>
@@ -43,6 +43,9 @@
 #ifdef WIN32
 #   include <winsock2.h>
 #   include <ws2tcpip.h>
+#   ifndef IN_MULTICAST
+#       define IN_MULTICAST(a) IN_CLASSD(a)
+#   endif
 #elif !defined( SYS_BEOS ) && !defined( SYS_NTO )
 #   include <netdb.h>                                         /* hostent ... */
 #   include <sys/socket.h>
@@ -213,20 +216,15 @@ static int OpenUDP( network_socket_t * p_socket )
                          " instead of 0x%x", i_opt, 0x80000 );
     }
     
-/* Under Win32 and for the multicast, we bind on INADDR_ANY, so let's call BuildAddr with NULL instead of psz_bind_addr */
     
     /* Build the local socket */
 
 #ifdef WIN32
-    
-#ifndef IN_MULTICAST
-#   define IN_MULTICAST(a)         IN_CLASSD(a)
-#endif
-
+    /* Under Win32 and for the multicast, we bind on INADDR_ANY,
+     * so let's call BuildAddr with "" instead of psz_bind_addr */
     psz_bind_win32 = psz_bind_addr ;
     
-/* Check if this is a multicast socket */
-
+    /* Check if this is a multicast socket */
     if (IN_MULTICAST( ntohl( inet_addr(psz_bind_addr) ) ) )
     {
         psz_bind_win32 = "";
index 2bda420bc730934b96c0eb4ff46791cbe8f975db..a05b490754bed0aa3794bf97bfa261c9f3ac8178 100644 (file)
@@ -4,7 +4,7 @@
  * and spawn threads.
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: main.c,v 1.164 2002/03/16 01:40:58 gbazin Exp $
+ * $Id: main.c,v 1.165 2002/03/19 00:30:44 sam Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
 #define IPV6_TEXT "force IPv6"
 #define IPV6_LONGTEXT NULL
 
-#define IPV4_TEXT "force IPv6"
+#define IPV4_TEXT "force IPv4"
 #define IPV4_LONGTEXT NULL
 
 #define ADEC_MPEG_TEXT "choose MPEG audio decoder"
index 12621764970561254018baee9d433866ef49de4b..561e436140b13d4ab9e4dd343502d59426fa817b 100644 (file)
@@ -2,7 +2,7 @@
  * netutils.c: various network functions
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: netutils.c,v 1.60 2002/03/11 07:23:10 gbazin Exp $
+ * $Id: netutils.c,v 1.61 2002/03/19 00:30:44 sam Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Benoit Steiner <benny@via.ecp.fr>
@@ -197,7 +197,7 @@ int network_ChannelJoin( int i_channel )
 
     /* Prepare the network_socket_t structure */
     socket_desc.i_type = NETWORK_UDP;
-    socket_desc.psz_bind_addr = NULL;
+    socket_desc.psz_bind_addr = "";
     socket_desc.i_bind_port = 4321;
     socket_desc.psz_server_addr = psz_vlcs;
     socket_desc.i_server_port = i_port;