Skip to content

Commit

Permalink
Skip video processing if surface isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
wseemann committed Jun 3, 2016
1 parent bbc6ca1 commit 7f616ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,10 @@ int stream_component_open(VideoState *is, int stream_index) {
packet_queue_init(&is->audioq);
break;
case AVMEDIA_TYPE_VIDEO:
if (is->native_window == NULL) {
return -1;
}

is->videoStream = stream_index;
is->video_st = pFormatCtx->streams[stream_index];

Expand Down

0 comments on commit 7f616ec

Please sign in to comment.