]> git.sesse.net Git - vlc/commitdiff
avio: remove interrupt callback for output
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 5 Feb 2015 18:11:47 +0000 (20:11 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 5 Feb 2015 19:23:44 +0000 (21:23 +0200)
sout_access_out objects are always alive. This was a no-op.

modules/access/avio.c

index 47615e6d939ddded86fc24ea7cddc28b1228532b..50ef585cdab096d1835328d33679bda81fcd55c9 100644 (file)
@@ -70,7 +70,7 @@ static int     OutSeek (sout_access_out_t *, off_t);
 
 static int UrlInterruptCallback(void *access)
 {
-    return !vlc_object_alive((vlc_object_t*)access);
+    return !vlc_object_alive((access_t *)access);
 }
 
 struct access_sys_t
@@ -233,10 +233,6 @@ int OutOpenAvio(vlc_object_t *object)
 #if LIBAVFORMAT_VERSION_MAJOR < 54
     ret = avio_open(&sys->context, access->psz_path, AVIO_FLAG_WRITE);
 #else
-    AVIOInterruptCB cb = {
-        .callback = UrlInterruptCallback,
-        .opaque = access,
-    };
     AVDictionary *options = NULL;
     char *psz_opts = var_InheritString(access, "sout-avio-options");
     if (psz_opts && *psz_opts) {
@@ -244,7 +240,7 @@ int OutOpenAvio(vlc_object_t *object)
         free(psz_opts);
     }
     ret = avio_open2(&sys->context, access->psz_path, AVIO_FLAG_WRITE,
-                     &cb, &options);
+                     NULL, &options);
     AVDictionaryEntry *t = NULL;
     while ((t = av_dict_get(options, "", t, AV_DICT_IGNORE_SUFFIX)))
         msg_Err( access, "unknown option \"%s\"", t->key );