[vlc-devel] commit: Improved a bit still frame support. (Laurent Aimar )
git version control
git at videolan.org
Wed Sep 3 01:17:15 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Sep 3 01:20:05 2008 +0200| [36bca799e67170ae4b290562c710e33cbb8b2905] | committer: Laurent Aimar
Improved a bit still frame support.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36bca799e67170ae4b290562c710e33cbb8b2905
---
modules/access/dvdnav.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 6ab93b7..96fcbdc 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -612,6 +612,7 @@ static int Demux( demux_t *p_demux )
switch( i_event )
{
case DVDNAV_BLOCK_OK: /* mpeg block */
+ p_sys->p_ev->b_still = false;
DemuxBlock( p_demux, packet, i_len );
break;
@@ -621,19 +622,18 @@ static int Demux( demux_t *p_demux )
case DVDNAV_STILL_FRAME:
{
- /* We send a dummy mpeg2 end of sequence to force still frame display */
- static const uint8_t buffer[] = {
- 0x00, 0x00, 0x01, 0xe0, 0x00, 0x07,
- 0x80, 0x00, 0x00,
- 0x00, 0x00, 0x01, 0xB7,
- };
- DemuxBlock( p_demux, buffer, sizeof(buffer) );
-
- /* */
dvdnav_still_event_t *event = (dvdnav_still_event_t*)packet;
vlc_mutex_lock( &p_sys->p_ev->lock );
if( !p_sys->p_ev->b_still )
{
+ /* We send a dummy mpeg2 end of sequence to force still frame display */
+ static const uint8_t buffer[] = {
+ 0x00, 0x00, 0x01, 0xe0, 0x00, 0x07,
+ 0x80, 0x00, 0x00,
+ 0x00, 0x00, 0x01, 0xB7,
+ };
+ DemuxBlock( p_demux, buffer, sizeof(buffer) );
+
msg_Dbg( p_demux, "DVDNAV_STILL_FRAME" );
msg_Dbg( p_demux, " - length=0x%x", event->length );
p_sys->p_ev->b_still = true;
More information about the vlc-devel
mailing list