]> git.sesse.net Git - vlc/commitdiff
There is no "=~" operator in C (it simply means "= ~").
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 3 Aug 2005 16:18:38 +0000 (16:18 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 3 Aug 2005 16:18:38 +0000 (16:18 +0000)
I assume the intent was "&= ~" which is not the same.

Needs review.

modules/services_discovery/sap.c
modules/services_discovery/upnp.cpp

index f51e99b93aa269d9f1f8a04f9aa1298214fece33..122667d3f2f5658bbbd3a7a35883ed3770dc3901 100644 (file)
@@ -351,7 +351,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_node = playlist_NodeCreate( p_sys->p_playlist, VIEW_CATEGORY,
                                          _("SAP"), p_view->p_root );
     p_sys->p_node->i_flags |= PLAYLIST_RO_FLAG;
-    p_sys->p_node->i_flags =~ PLAYLIST_SKIP_FLAG;
+    p_sys->p_node->i_flags &= ~PLAYLIST_SKIP_FLAG;
     val.b_bool = VLC_TRUE;
     var_Set( p_sys->p_playlist, "intf-change", val );
 
@@ -841,7 +841,7 @@ sap_announce_t *CreateAnnounce( services_discovery_t *p_sd, uint16_t i_hash,
                 p_child = playlist_NodeCreate( p_sd->p_sys->p_playlist,
                                                VIEW_CATEGORY, psz_grp,
                                                p_sd->p_sys->p_node );
-                p_child->i_flags =~ PLAYLIST_SKIP_FLAG;
+                p_child->i_flags &= ~PLAYLIST_SKIP_FLAG;
             }
             free( psz_grp );
         }
index 5d8c72415fffd488da0f97c131229f567aa5a732..ca8a318a38889cba4c907fe80f00f3697a5d599d 100644 (file)
@@ -113,7 +113,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_node = playlist_NodeCreate( p_sys->p_playlist, VIEW_CATEGORY,
                                          _("UPnP"), p_view->p_root );
     p_sys->p_node->i_flags |= PLAYLIST_RO_FLAG;
-    p_sys->p_node->i_flags =~ PLAYLIST_SKIP_FLAG;
+    p_sys->p_node->i_flags &= ~PLAYLIST_SKIP_FLAG;
     val.b_bool = VLC_TRUE;
     var_Set( p_sys->p_playlist, "intf-change", val );
 
@@ -230,7 +230,7 @@ playlist_item_t *UPnPHandler::AddDevice( Device *dev )
 
     p_item = playlist_NodeCreate( p_sys->p_playlist, VIEW_CATEGORY,
                                   str, p_sys->p_node );
-    p_item->i_flags =~ PLAYLIST_SKIP_FLAG;
+    p_item->i_flags &= ~PLAYLIST_SKIP_FLAG;
     msg_Dbg( p_sd, "device %s added", str );
     free( str );