Fix playlist export
authorClément Stenac <zorglub@videolan.org>
Tue, 1 Mar 2005 13:31:32 +0000 (13:31 +0000)
committerClément Stenac <zorglub@videolan.org>
Tue, 1 Mar 2005 13:31:32 +0000 (13:31 +0000)
Remove extra SAP debug

modules/misc/playlist/m3u.c
modules/services_discovery/sap.c
src/playlist/item.c

index 2862ada..14d4512 100644 (file)
@@ -53,7 +53,7 @@ int Export_M3U( vlc_object_t *p_this )
     /* Go through the playlist and add items */
     for( i = 0; i< p_playlist->i_size ; i++)
     {
-        if( p_playlist->pp_items[i]->i_flags & ~PLAYLIST_SAVE_FLAG )
+        if( (p_playlist->pp_items[i]->i_flags & PLAYLIST_SAVE_FLAG) == 0 )
         {
             continue;
         }
index 3813743..967f60c 100644 (file)
@@ -638,7 +638,6 @@ static int ParseSAP( services_discovery_t *p_sd, uint8_t *p_buffer, int i_read )
 
     /* First, check the sap announce is correct */
     i_version = p_buffer[0] >> 5;
-msg_Dbg( p_sd, "." );
     if( i_version != 1 )
     {
        msg_Dbg( p_sd, "strange sap version %d found", i_version );
@@ -893,6 +892,7 @@ sap_announce_t *CreateAnnounce( services_discovery_t *p_sd, uint16_t i_hash,
     }
 
     p_item->i_flags &= ~PLAYLIST_SKIP_FLAG;
+    p_item->i_flags &= ~PLAYLIST_SAVE_FLAG;
 
     playlist_NodeAddItem( p_playlist, p_item, VIEW_CATEGORY, p_child,
                           PLAYLIST_APPEND, PLAYLIST_END );
@@ -1100,7 +1100,6 @@ static sdp_t *  ParseSDP( vlc_object_t *p_obj, char* psz_sdp )
     sdp_t *p_sdp;
     vlc_bool_t b_invalid = VLC_FALSE;
     vlc_bool_t b_end = VLC_FALSE;
-msg_Dbg( p_obj, "%s", psz_sdp );
     if( psz_sdp == NULL )
     {
         return NULL;
index 0c3ad26..3cb10bd 100644 (file)
@@ -78,6 +78,7 @@ playlist_item_t * playlist_ItemNewWithType( vlc_object_t *p_obj,
 
     p_item->i_flags = 0;
     p_item->i_flags |= PLAYLIST_SKIP_FLAG;
+    p_item->i_flags |= PLAYLIST_SAVE_FLAG;
 
     p_item->input.i_duration = -1;
     p_item->input.ppsz_options = NULL;