]> git.sesse.net Git - vlc/blobdiff - modules/codec/cmml/xlist.c
Qt: menus, add VolumeMute/VolumeUp/VolumeDown in the audio menu to match OSX Audio...
[vlc] / modules / codec / cmml / xlist.c
index 944e2e0c092ed34b67cec3ed7f1a83f253b5e171..bc91d1573c8868ce0cbe406890b3cb9265437fe1 100644 (file)
@@ -24,6 +24,9 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <stdlib.h>
 
@@ -113,8 +116,8 @@ xlist_append (XList * list, void * data)
   if (list == NULL) return l;
 
   last = xlist_tail (list);
-  if (last) last->next = l;
-  l->prev = last; 
+  last->next = l;
+  l->prev = last;
   return list;
 }
 
@@ -134,7 +137,7 @@ xlist_add_before (XList * list, void * data, XList * node)
   l->next = node;
   if (p) p->next = l;
   node->prev = l;
-  
   return list;
 }