]> git.sesse.net Git - vlc/blobdiff - src/stream_output/sdp.c
linsys_hdsdi: do not fail on EINTR
[vlc] / src / stream_output / sdp.c
index 6125323c0c4731bce58399a08f03eddc4d7e5df8..37c55b0eb2a12ab9adbbf6edc83bf4d031e18256 100644 (file)
@@ -4,26 +4,26 @@
  * Copyright © 2007 Rémi Denis-Courmont
  * $Id$
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
  * the Free Software Foundation; either version 2.1 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  * GNU Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * 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 <vlc/vlc.h>
+#include <vlc_common.h>
 
 #include <stddef.h>
 #include <string.h>
@@ -292,13 +292,14 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref,
     if (sdp == NULL)
         return NULL;
 
-    /* Totally non-standard */
-    strcpy (subvar, "group");
-    char *group = var_GetNonEmptyString (obj, varname);
-    if (group != NULL)
+    strcpy (subvar, "cat");
+    char *cat = var_GetNonEmptyString (obj, varname);
+    if (cat != NULL)
     {
-        sdp_AddAttribute (&sdp, "x-plgroup", "%s", group);
-        free (group);
+        sdp_AddAttribute (&sdp, "cat", "%s", cat);
+        /* Totally non-standard */
+        sdp_AddAttribute (&sdp, "x-plgroup", "%s", cat);
+        free (cat);
     }
 
     return sdp;