Commit Graph

815 Commits

Author SHA1 Message Date
Stéphane Borel
3bb7a5371e Removed flooding debug info :) 2001-02-20 02:56:50 +00:00
Stéphane Borel
97c3185de4 First serie of changes in DVD module for the forthcoming interface menus
There is a new capability in input type modules for setting the
attributes of a new area. It is set to NULL for PS and TS plugins.
 It should be called for every title change, chapter change,
audio mode change or spu channel change.

But this part of code is not used at the moment, and is not completed
yet.
2001-02-20 02:53:13 +00:00
Christophe Massiot
a6fe4de420 * Kludge of the kludge, removing an oddity in YUV initialisation, and
activating YUV overlay on startup whenever hardware acceleration is
available. Thanks for bearing with us, stay tuned.
2001-02-19 19:28:33 +00:00
Christophe Massiot
33f6628a44 * mux_rate parsing ;
* Changed video decoder's error messages into warnings.
2001-02-19 19:08:59 +00:00
Renaud Dartus
ef54efe5dd * Add dither fix
* Some cosmetic changes
2001-02-19 08:02:33 +00:00
Sam Hocevar
d35a29fa0f * Drag and drop support under BeOS. 2001-02-19 03:46:27 +00:00
Stéphane Borel
050106567a -Change in the code to detect beginning of movie. It is much better now
but still fails with some DVD for which the movie is not the first
Program.

As a consequence some DVD that worked before don't work anymore.

-Beginning of ideas to handle chapters and ES selection
2001-02-19 03:12:26 +00:00
Sam Hocevar
c3b1800a5c * configure.in and Makefile.in patches for better SDL support and
support for $(bindir) $(datadir) and $(libdir) stuff, courtesy
    of Arkadiusz Miskiewicz <misiek@pld.ORG.PL>
  * Ported ggi.so to the new modules API. As for the other modules, only
    the "q" key works. Moreover, VLC doesn't exit cleanly if you close the
    GGI window.
  * Deactivated non-working widgets in the Gnome interface.
  * Added CONTRIBUTORS file.

  Hint of the day: don't expect to code quite long in your bed when sleepy.
2001-02-18 19:14:27 +00:00
Sam Hocevar
e630779bd0 * Ported the framebuffer plugin to the new module API. As for most of the
other video output modules, keyboard doesn't work. Except ^C to quit.
2001-02-18 10:24:20 +00:00
Jean-Marc Dressler
b0ab70c9bf The BeOS port seems to work again.
I used this command to play an unencrypted DVD, but maybe there is a
   better solution: ./vlc dvd:/dev/disk/ide/atapi/1/master/0/raw

   Current problems: gcc doesn't like MMX-EXT instructions, and refuses
   to have register %ebx being used in the main application. Grr.

   ,-- don't trust the CVS bot, it's Sam speaking here :)
  /
2001-02-18 03:32:02 +00:00
Stéphane Borel
8e3c802c84 -UDF filesystem support so that we know the location of the first video
related file with 100% reliability (great change that should make DVDs
with binaries and extra stuff work with vlc).

-Correction of a bug in ifo reading that falsified the adress of
video titles.

-Changed the method for selecting title at start. It is _not_ reliable
though, but it is better than the preceding one.
2001-02-18 01:42:05 +00:00
Sam Hocevar
f1175e715b * Tried to fix the BeOS interface and video output. Any BeOS developers
listening ? I can't even test that code, it probably wants additional
   fixing.
 * Added a workaround in modules.c for broken libc's which happen to truncate
   filenames in dentry structures when using 64bits offsets. The kind of
   stuff you only see in RedHats <g>.
 * Made the SDL error messages a bit more useful.
 * The Gnome menu is now created when mouse is released, not when it
   is pressed. It may sound stupid, but it really makes a difference.
2001-02-17 08:48:56 +00:00
Sam Hocevar
566ca28782 * Upgraded version number to 0.2.61. Release is today.
* Fixed package building (both RPMs and .debs).
 * Fixed `make snapshot' rule.
 * Added some magic to filename detection. To read a DVD you now just
   need to run 'vlc dvd:/dev/hdc' for instance. Same for file:// URIs.
 * Fixed a segfault in the slider when no stream was playing.
 * Made the slider go from 0 to 100 (instead of 99 :)
 * The vlc now doesn't exit when finished playing. As a side effect of
   the playlist code being very recent, it continuously loops.
2001-02-16 09:25:04 +00:00
Sam Hocevar
b2f56af994 * Fixed a segfault in the input thread creation, as well as a possible
deadlock. This happened mostly when opening non-existing files.
 * Created input_SetStatus to do input_SetRate's job. input_SetRate will
   be used to set an arbitrary rate, for people who want to read DVDs at
   1/2.71828 times the actual speed.
 * Stubs for the ncurses control interface. No working code yet, but the
   holes just need to be filled.
 * Improved X11 support. Still not as functional as before.
 * The output window now states the method name, so that people know whether
   they are using X11 or SDL.
 * The Gnome interface is now drag'n'drop aware, you can drop a file
   on it just like Xine does (or so I guess).
2001-02-16 06:37:09 +00:00
Stéphane Borel
16247a7506 -New more recent css authentication code.
-Beginning of udf support (not in Makefile)
2001-02-15 21:03:27 +00:00
Sam Hocevar
0f601455ff * removed useless includes in intf_gnome.c
* made the vout_sdl.c functions static
 * ported vout_x11.c to the modules API; code isn't very nice yet though
2001-02-15 07:59:38 +00:00
Sam Hocevar
2ba056f279 * X11 output works again. It's just the output, but it works; I now need
to clean the code and add event handling.
2001-02-15 03:01:20 +00:00
Henri Fallon
79b461542e Begining of TS Input
Done :
- fixed netlist
- embryo : support TS video trough file ( kludgy ... )

Next :
- Write DecodePSI and DemuxPSI, wich will clean the kludges off

Then :
- Write NetworkOpen ( shouldn't be difficult )

Eventually :
- Deal with lost/corrupt packets
2001-02-14 15:58:29 +00:00
Sam Hocevar
a294d22adb * Should have fixed the dependency generater for some plugins. 2001-02-14 14:31:07 +00:00
Sam Hocevar
1c99dc85d6 * updated version information to 0.2.60 -- today's release
* started porting the X11 vout (still disabled)
 * a few unnoticeable changes in the Gnome intf
2001-02-14 07:48:18 +00:00
Stéphane Borel
8a1ec9694a -Changes in the way stream size in DVD mode is calculated. It is no
longer such an ugly kludge and is much more accurate.

-Changes in DVDSeek so that the interface slider is in 0 when we are at
the beginning of the strem.

-Try to detect the beginning of the movie in the middle of the title. It
works for most of the DVDs but will begin in the middle of the movie
with some others.

-Calculate only the first title key in css mode because it might take a
long time with some title. The search stops now when we have a key once
whereas it did stop only when we had it twice before. It should not
cause problems.
2001-02-14 04:11:01 +00:00
Christophe Massiot
8d07abcdd0 * Really fixed MC segfault bug. 2001-02-13 13:01:15 +00:00
Stéphane Borel
6ff208627d -adaptation of DVD module to navigation slider. The seek has to be
done on a multiple of 2048, and shopuld take care of the offset to the
beginning of the stream. It works with most of my DVDs by fails to
detect size of some streams.

-change of the order of call to ifo and css functions in input_dvd.c,
because we can't read ifo files before authentification on some DVDs.

-changed location of some css tables.

-we read ifo date and decrypt css keys for all titles now. It takes quite a
long time to initialize with some DVDs (if you have 42 titles for
instance). The key decryption might give a false value if the title is
less than 10 Mb ; I'm working on that :)
2001-02-13 10:08:51 +00:00
Sam Hocevar
1e19c01b1d * Quick patch to avoid a segfault when arbitrarily seeking the stream.
Meuuh: you probably have a better solution for this ; I simply don't
  know the video decoder well enough to do it myself.
2001-02-13 06:31:05 +00:00
Sam Hocevar
75eb696dcc * added --intf option to vlc
* started cleaning vout_sdl.c
 * the dummy plugin works again
 * added a slider to the Gnome interface so that we can browse through streams

  There is a problem with the slider: we sometimes get unexpected async
  replies, which would mean that we don't properly lock our Xlib calls.
  Which is true. But we also get these errors when using `--vout dummy'.
  I'll investigate.
2001-02-13 04:29:46 +00:00
Christophe Massiot
e8ceb0e1d3 Removed enhancement because of an incompatibility with slow motion. 2001-02-12 18:18:18 +00:00
Christophe Massiot
991b8fc1d7 * We can now seek at position 0 :p ;
* Fixed a typo in my previous commit.
2001-02-12 13:20:15 +00:00
Christophe Massiot
509d5ac442 * Tried to enhance picture dating on timebase discontinuities. 2001-02-12 11:22:31 +00:00
Christophe Massiot
2b65b38b94 * Fixed pause bug. 2001-02-12 10:46:26 +00:00
Stéphane Borel
5a7963104b -Much cleaning in css code. It should work fine now.
Most of DVD with movie in title 1 should work.

To come : support for movie in other titles.
2001-02-12 09:58:06 +00:00
Sam Hocevar
3b3156e1fa . removed tests against i_rate and i_new_rate calculation from the
plugins and hid this complexity into input_ext-intf.c
2001-02-12 09:39:15 +00:00
Sam Hocevar
c3e2bf1d3b * Fixed my old stupid bug that disabled sound after having played the
first playlist item.
  * Added `Prev' and `Next' buttons to the interface, with the beginning of
    a playlist window (still empty).
  * Added `Slow' and `Fast' buttons to the interface and popup menu.

  Ok, I promise it's the last time I check bloat in, from now the interface
  commits will be much cleaner and actually fix things :)
2001-02-12 07:52:40 +00:00
Sam Hocevar
02d21f72fa * The pure Gnome part of the Gnome interface has been rewritten from
scratch, and the .glade file included as well. You can edit it by
   installing glade-gnome and doing `glade plugins/gnome/intf_gnome.glade',
   or directly by hand if you grok XML.
 * Files can now be loaded into vlc using the `Open' buttons. But for the
   moment you still have to launch vlc with at least one file, because it
   quits when the end of the playlist is reached.
 * Idle screen was disabled because it eats a lot of CPU and is mostly
   useless for the moment. And it gets activated when pause lasts for too
   long.
2001-02-12 00:20:37 +00:00
Sam Hocevar
959674591f Beginning of Interface II
---------------------------

 * Plugins have completely disappeared, we now only use the new module API.
 * All intf and vout modules are now independant. So far, only the Gnome
   intf module and the SDL vout module have been ported. configure.in has
   been modified to reflect the changes (x11 and dummy aren't compiled by
   default anymore, while SDL and Gnome are).

  Note that this is _not_ Interface II, it's just a step forward. For
  instance, it lacks the whole message passing scheme.

  Things that should work:

 * Right-clicking on the SDL video output window brings the Gnome menu.
 * Pause, Play, Exit, About work from the menu or from the interface window.
 * The old SDL keys still work.

   Things that are broken or may be broken:

 * Xlib calls are not locked yet, which may lead to "Unexpected async reply"
   errors, and make the vlc segfault.
 * Sound only works for the first file.
 * The SDL vout_sdl.c file is absolutely ugly and kludgey.
 * The vlc immediately quits when no filename is given as an argument. Not
   a real bug, but still annoying.
 * The Gnome menu does not work in fullscreen mode.

   Things that will come soon, maybe tomorrow:

 * Complete navigation buttons (fast forward, slow, etc.).
 * File/Open menu to add files to the playlist.
 * Return of the X11 video output for those of us who do not have SDL.
 * Textmode interface for those of us who do not have Gnome.
 * aout and vout autospawn (maybe).
2001-02-11 01:15:12 +00:00
Stéphane Borel
e4aec3d8fb -Fixed a bug in #define that prevented from using ioctls 2001-02-09 18:34:01 +00:00
Stéphane Borel
6b14a375ee -Some functions to prepare ifo commands utilisation to move in the
structures of DVDs
-Change in configure to avoid compiling css functions on BSD.
2001-02-09 03:51:42 +00:00
Sam Hocevar
71f866bf43 . added comments to src/interface/intf_plst.c and include/intf_plst.h
so that people understand how the playlist works.
 . updated the TODO list (34 items to do, 41 done !)
2001-02-08 23:40:26 +00:00
Christophe Massiot
d21d510cbe * Portability : changed off64_t to off_t and activated appropriate
GNU/Linux options ;
* Changed fseek() to fseeko() for 64-bit offsets ;
* Reset frame predictors on a stream discontinuity.
2001-02-08 17:44:13 +00:00
Christophe Massiot
785049d7f6 * Implemented basic stream navigation function, and bound Jump forward
and jump Backward in the SDL intf. Enjoy !
2001-02-08 13:52:35 +00:00
Christophe Massiot
66f7daf3c2 * Pause function implemented ('p' key). 2001-02-08 13:08:03 +00:00
Christophe Massiot
3433731787 Fixed a compile probleme on machine without a dvd player :ppppp
Maybe it would be a good idea to compile the DVD plugin on machines which
have one ? :pppp
2001-02-08 11:22:41 +00:00
Stéphane Borel
b9574a9561 *** empty log message *** 2001-02-08 08:08:03 +00:00
Sam Hocevar
03d925fdb8 . moved the playlist handling from input/input.c to interface/interface.c
. fixed a few warnings at compile-time
 . fixed sound channel selection in playlist mode
 . added a color message in the plugin bank because on peut bien d�conner
   cinq minutes, quand-m�me
 . we now spawn a new input thread for each file
 . added a missing pf_close() because it's always cool to close files
   after we read them
2001-02-08 07:24:25 +00:00
Stéphane Borel
e754b0970b -solved bug with cssdescrambling. The vlc might segfault with dvd
plugins. I will fix that soon.
-minor modification in pluginification.
2001-02-08 06:41:56 +00:00
Sam Hocevar
0935df9e58 This commit is a bit early, but it'll save Stef, Henri and me much
time later, when we don't have to backport modifications to input_*.c

   What's new :
    - playlist works again (still the old wrong way like Meuuh doesn't
    like, but this is going to change within a few hours)
    - input_ps, input_ts and input_dvd are now plugins, located in
    plugins/mpeg/ and plugins/dvd/

   What's broken :
    - audio output might be broken on some streams ; have to investigate

   What has changed :
    - fast/slow keys are now A/Z instead of A/S since S was already
    linked to the scale/noscale toggle.
    - `--dvd' doesn't work anymore, for the moment try to use :
     vlc --input dvd /dev/dvd
    - module bank is now less verbose ; use `--warn 1' to turn back
    verbosity on
2001-02-08 04:43:28 +00:00
Stéphane Borel
ff77ef7810 -New method using netlist to read packets on DVD device by sectors of
2048 bytes.
-Some modifications in netlist to make it work with DVD.
-Fixed � bug in mpeg_system.c

We use INPUT_READ_ONCE many times in the input code. I think that
we should replace it with a field in input_thread_t to give more
flexibility to modules. I have done it in DVD plugin but it can't work
if input.c is limited by INPUT_READ_ONCE.

The DVD method is slower than input_ps ; but there are things to
improve.
CSS descrambling is broken.
2001-02-08 01:34:42 +00:00
Renaud Dartus
7cb79b9f53 Cosmetics changes 2001-02-08 01:06:11 +00:00
Renaud Dartus
40c292e626 We can now choose the speed of forward (between 32/1 and 1/8)
Thanks to Meuuh, he's MORTEL ;)
2001-02-08 00:46:12 +00:00
Christophe Massiot
d7eae1f5dd Another mistake. 2001-02-07 17:56:21 +00:00
Christophe Massiot
b85d38f06a /me <- pogno who modifies Makefile instead of Makefile.in :p 2001-02-07 17:51:27 +00:00