Changeset 09ba73c7643dd96696aeaa82bc116b2b5d5b5573

Show
Ignore:
Timestamp:
10/03/04 22:55:25 (5 years ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1078955725 +0000
git-parent:

[0afa4317178d8585ea7ee74bfc8c17b0dd7fddbb]

git-author:
Laurent Aimar <fenrir@videolan.org> 1078955725 +0000
Message:
  • input, stream_output: handle sout_instance_t->p_meta.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/input/input.c

    r1d7b91d r09ba73c  
    900900        if( p_playlist ) vlc_object_release( p_playlist ); 
    901901 
    902         vlc_meta_Delete( meta ); 
     902        if( p_input->stream.p_sout && p_input->stream.p_sout->p_meta == NULL ) 
     903        { 
     904            p_input->stream.p_sout->p_meta = meta; 
     905        } 
     906        else 
     907        { 
     908            vlc_meta_Delete( meta ); 
     909        } 
    903910    } 
    904911 
  • src/stream_output/stream_output.c

    r1d7b91d r09ba73c  
    3232 
    3333#include <vlc/vlc.h> 
    34  
    3534#include <vlc/sout.h> 
     35 
     36#include "vlc_meta.h" 
     37 
    3638#undef DEBUG_BUFFER 
    3739/***************************************************************************** 
     
    118120    /* *** init descriptor *** */ 
    119121    p_sout->psz_sout    = strdup( psz_dest ); 
     122    p_sout->p_meta      = NULL; 
    120123    p_sout->i_preheader = 0; 
    121124    p_sout->i_padding   = 0; 
     
    162165    FREE( p_sout->psz_sout ); 
    163166    FREE( p_sout->psz_chain ); 
     167 
     168    if( p_sout->p_meta ) 
     169    { 
     170        vlc_meta_Delete( p_sout->p_meta ); 
     171    } 
    164172 
    165173    sout_stream_delete( p_sout->p_stream );