Cleanup global video state.
authorNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 31 Dec 2015 16:39:44 +0000 (11:39 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 31 Dec 2015 16:39:44 +0000 (11:39 -0500)
* src/media/media-ffmpeg.c: Remove global video state since it is
not used, except to set to NULL.
 (new_media_ffmpeg_read): No need to reset global_video_state, as it is not used.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/media/media-ffmpeg.c

index 3c9693e..e33e751 100644 (file)
@@ -932,7 +932,6 @@ typedef struct VideoState {
 
 /* since we have only one decoding thread, we can use a global
    variable instead of a thread local variable */
-static VideoState *global_video_state;
 AVPacket flush_pkt;
 
 /* packet queue handling */
@@ -1587,8 +1586,6 @@ new_media_ffmpeg_read(media_substream *mss, void *outbuf, size_t length)
        }
 
        ret = 0;
-       /* disable interrupting */
-       global_video_state = NULL;
 
        /* close each stream */
        if (is->audio_stream >= 0)