Changeset e405691afcb7d6c9d4e0917da3565fbe149114e3

Show
Ignore:
Timestamp:
06/19/02 01:18:40 (6 years ago)
Author:
Christophe Massiot <massiot@videolan.org>
git-committer:
Christophe Massiot <massiot@videolan.org> 1024442320 +0000
git-parent:

[cecb7e869db3e9cecffcb712fd66c3a8bc52636e]

git-author:
Christophe Massiot <massiot@videolan.org> 1024442320 +0000
Message:

Ported previous stable commits.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • README.MacOSX.rtf

    r1a6e240 re405691  
    22{\fonttbl\f0\fswiss\fcharset77 Helvetica;\f1\fswiss\fcharset77 Helvetica-Bold;\f2\fmodern\fcharset77 Courier; 
    33} 
    4 {\colortbl;\red255\green255\blue255;
     4{\colortbl;\red255\green255\blue255;\red255\green3\blue0;
    55\margl1440\margr1440\vieww11240\viewh10380\viewkind0 
    66\hyphauto1\hyphfactor90 
     
    1515\pard\tx1440\tx2880\tx4320\tx5760\tx7200\qj 
    1616\cf0 Welcome to the VideoLAN Client ! VLC is a multi-purpose mutimedia tool : it can play DVDs and VCDs, or read a stream from the network. It also supports DivX/MPEG-4 files and is unaffected by the dreaded .avi bug which can cause choppy sound when playing DivX in Quicktime. VLC has originally been developed for GNU/Linux systems, but has been ported to numerous operating systems, including Mac OS X and Win32. The Mac OS X port is a bit young and immature, as you will notice, and there are many caveats. We are working hard to improve it, and if you think you can help us in any way, please drop us a line.\ 
     17\ 
     18 
     19\fs48 \cf2 IMPORTANT NOTE 
     20\fs24 \cf0 \ 
     21\ 
     22 
     23\f1\b VLC is NOT compatible with QuickTime 6 Preview. At this point, we suspect a bug in QuickTime 6 Preview. Known workaround are :\ 
     24- switch the screen depth to thousands of colors ;\ 
     25- downgrade to QuickTime 5 (see http://docs.info.apple.com/article.html?artnum=120084)\ 
     26\ 
     27Please do NOT report any problem with QuickTime 6 Preview. Use it at your own risks. Any report involving QuickTime 6 Preview will be deleted. 
     28\f0\b0 \ 
     29\ 
    1730\ 
    1831You may find the following frequentely asked questions useful :\ 
     
    4962\f1\b \ul 5. I only get a black picture !\ 
    5063 
    51 \f0\b0 \ulnone We haven't found the reason why some people get this problem. However, users have indicated a workaround : switch your screen depth to thousands of colors instead of millions. If you think you have information to help us find the bug, please drop us a mail. Downgrading QuickTime to 5.0 may help, too.\ 
     64\f0\b0 \ulnone Are you sure you do not have QuickTime 6 Preview installed ?.\ 
    5265\ 
    5366\ 
     
    6477\ 
    6578\ 
     79 
     80\f1\b \ul 8. Where can I find an older version for Mac OS 9 ?\ 
     81 
     82\f0\b0 \ulnone There is no version for Mac OS 9. VLC is originally a UNIX application and has never been ported to Mac OS 9. Considering the amount of differences between Mac OS 9 and modern systems, it would require a tremendous work to port VLC. We do not plan to do it. So please don't ask.\ 
     83\ 
     84\ 
    6685Thanks for reading this file. For additional information, subscribe to the vlc mailing list on \ul http://www.videolan.org/.\ulnone \ 
    6786-- \ 
    6887Christophe Massiot <massiot@via.ecp.fr>, for the VideoLAN team.\ 
    69 $Id: README.MacOSX.rtf,v 1.4 2002/06/02 23:03:22 massiot Exp $} 
     88$Id: README.MacOSX.rtf,v 1.5 2002/06/18 23:18:40 massiot Exp $} 
  • configure

    rcecb7e8 re405691  
    32973297save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`" 
    32983298 
    3299 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 
     3299for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll 
    33003300do 
    33013301echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
  • configure.in

    rcecb7e8 re405691  
    127127 
    128128dnl Check for system libs needed 
    129 AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
     129AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
    130130 
    131131AC_CHECK_FUNC(connect,,[ 
  • include/config.h

    r211d6ba re405691  
    126126/* Volume */ 
    127127#define VOLUME_DEFAULT                  256 
    128 #define VOLUME_STEP                     128 
     128#define VOLUME_STEP                     32 
    129129#define VOLUME_MAX                      1024 
     130#define VOLUME_MIN                      0 
    130131 
    131132/* Number of audio output frames contained in an audio output fifo. 
  • include/defs.h.in

    r7291e0a re405691  
    1 /* include/defs.h.in.  Generated automatically from configure.in by autoheader 2.13.  */ 
     1/* include/defs.h.in.  Generated automatically from configure.in by autoheader.  */ 
    22 
    33/* Define if using alloca.c.  */ 
     
    5656#undef HAVE___ARGZ_STRINGIFY 
    5757 
     58/* Define if you have the atoll function.  */ 
     59#undef HAVE_ATOLL 
     60 
    5861/* Define if you have the dcgettext function.  */ 
    5962#undef HAVE_DCGETTEXT 
  • plugins/access/http.c

    r9e3ab28 re405691  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001, 2002 VideoLAN 
    5  * $Id: http.c,v 1.11 2002/06/01 12:31:58 sam Exp $ 
     5 * $Id: http.c,v 1.12 2002/06/18 23:18:40 massiot Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    138138#   define HTTP_END       "\r\n" 
    139139  
    140     snprintf( psz_buffer, sizeof(psz_buffer), 
    141               "%s" 
    142               "Range: bytes=%lld-\r\n" 
    143               HTTP_USERAGENT HTTP_END, 
    144               p_access_data->psz_buffer, i_tell ); 
     140    if ( p_input->stream.b_seekable ) 
     141    { 
     142         snprintf( psz_buffer, sizeof(psz_buffer), 
     143                   "%s" 
     144                   "Range: bytes=%lld-\r\n" 
     145                   HTTP_USERAGENT HTTP_END, 
     146                   p_access_data->psz_buffer, i_tell ); 
     147    } 
     148    else 
     149    { 
     150         snprintf( psz_buffer, sizeof(psz_buffer), 
     151                   "%s" 
     152                   HTTP_USERAGENT HTTP_END, 
     153                   p_access_data->psz_buffer, i_tell ); 
     154    } 
    145155    psz_buffer[sizeof(psz_buffer) - 1] = '\0'; 
    146156 
     
    190200        { 
    191201            psz_parser += strlen("Content-Length: "); 
     202            vlc_mutex_lock( &p_input->stream.stream_lock ); 
     203#ifdef HAVE_ATOLL 
     204            p_input->stream.p_selected_area->i_size = atoll( psz_parser ) 
     205                                                        + i_tell; 
     206#else 
    192207            /* FIXME : this won't work for 64-bit lengths */ 
    193             vlc_mutex_lock( &p_input->stream.stream_lock ); 
    194208            p_input->stream.p_selected_area->i_size = atoi( psz_parser ) 
    195209                                                        + i_tell; 
     210#endif 
    196211            vlc_mutex_unlock( &p_input->stream.stream_lock ); 
    197212        } 
     
    388403 
    389404        snprintf( p_access_data->psz_buffer, sizeof(p_access_data->psz_buffer), 
    390                   "GET http://%s:%d/%s HTTP/1.1\r\n", 
     405                  "GET http://%s:%d/%s\r\n HTTP/1.0\r\n", 
    391406                  psz_server_addr, i_server_port, psz_path ); 
    392407    } 
     
    409424    vlc_mutex_lock( &p_input->stream.stream_lock ); 
    410425    p_input->stream.b_pace_control = 1; 
    411     p_input->stream.b_seekable = 0
     426    p_input->stream.b_seekable = 1
    412427    p_input->stream.p_selected_area->i_tell = 0; 
    413428    p_input->stream.p_selected_area->i_size = 0; 
     
    416431    p_input->i_mtu = 0; 
    417432  
    418     return( HTTPConnect( p_input, 0 ) ); 
     433    if( HTTPConnect( p_input, 0 ) ) 
     434    { 
     435        char * psz_pos = strstr(p_access_data->psz_buffer, "HTTP/1.1"); 
     436        p_input->stream.b_seekable = 0; 
     437        psz_pos[7] = 0; 
     438        return( HTTPConnect( p_input, 0 ) ); 
     439    } 
     440    return 0; 
    419441} 
    420442 
  • plugins/macosx/intf_vlc_wrapper.m

    r58ac187 re405691  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: intf_vlc_wrapper.m,v 1.14 2002/06/08 18:52:34 sam Exp $ 
     5 * $Id: intf_vlc_wrapper.m,v 1.15 2002/06/18 23:18:40 massiot Exp $ 
    66 * 
    77 * Authors: Florian G. Pflug <fgp@phlo.org> 
     
    631631- (void)openNetHTTP:(NSString*)o_addr 
    632632{ 
    633     NSString *o_source; 
    634633    int i_end = p_main->p_playlist->i_size; 
    635634    intf_thread_t * p_intf = p_main->p_intf; 
     
    996995            [o_subtitle removeItemAtIndex:0]; 
    997996        } 
     997 
     998        [o_language_item setEnabled: 1]; 
     999        [o_subtitle_item setEnabled: 1]; 
    9981000 
    9991001        /* Create language & subtitles menus */ 
  • plugins/macosx/vout_vlc_wrapper.m

    rd1adb68 re405691  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: vout_vlc_wrapper.m,v 1.5 2002/06/08 19:32:19 sam Exp $ 
     5 * $Id: vout_vlc_wrapper.m,v 1.6 2002/06/18 23:18:40 massiot Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>  
     
    3232#include <vlc/intf.h> 
    3333#include <vlc/vout.h> 
     34#include <vlc/aout.h> 
    3435 
    3536#include "stream_control.h" 
     
    111112    switch( key ) 
    112113    { 
     114        case (unichar)0xf700: /* up-arrow */ 
     115            if ( !p_main->p_intf->p_sys->b_mute 
     116                  && p_aout_bank->pp_aout[0]->i_volume + VOLUME_STEP 
     117                       <= VOLUME_MAX ) 
     118            { 
     119                p_aout_bank->pp_aout[0]->i_volume += VOLUME_STEP; 
     120            } 
     121            break; 
     122 
     123        case (unichar)0xf701: /* down-arrow */ 
     124            if ( !p_main->p_intf->p_sys->b_mute 
     125                  && p_aout_bank->pp_aout[0]->i_volume - VOLUME_STEP 
     126                       >= VOLUME_MIN ) 
     127            { 
     128                p_aout_bank->pp_aout[0]->i_volume -= VOLUME_STEP; 
     129            } 
     130            break; 
     131 
    113132        case 'f': case 'F': 
    114133            p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;