]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7694 #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 18:57:18 +0000 (13:57 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 18:57:18 +0000 (13:57 -0500)
src/mod/applications/mod_av/avformat.c

index adeaee03180f63f4e06a968e964f77f0fc589dcb..56e48cb2e0a76744084080b1a8320292f14fdaff 100644 (file)
@@ -1530,12 +1530,8 @@ static switch_status_t av_file_close(switch_file_handle_t *handle)
                if (context->has_video) close_stream(context->fc, &context->video_st);
                if (context->has_audio) close_stream(context->fc, &context->audio_st);
 
-               if (context->fc->oformat) {
-                       if (!(context->fc->oformat->flags & AVFMT_NOFILE)) {
-                               avio_close(context->fc->pb);//todo
-                       } else {
-                               avformat_network_deinit();
-                       }
+               if (context->fc->pb) {
+                       avio_close(context->fc->pb);
                }
 
                /* free the stream */