Skip to content

Commit

Permalink
use obj is_handled
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghanchao committed Jul 21, 2018
1 parent 2441c00 commit 8026372
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libavformat/dashdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ struct fragment {
int64_t url_offset;
int64_t size;
char *url;
AVAppIOControl app_io_ctrl;
AVApplicationContext *app_ctx;
int64_t app_ctx_intptr;
struct representation * pls;
Expand Down Expand Up @@ -1527,8 +1526,9 @@ static int func_on_app_event(AVApplicationContext *h, int event_type ,void *obj,
case AVAPP_CTRL_WILL_HTTP_OPEN:
dash_call_inject(s);
refresh_manifest(s);
memcpy(&seg->app_io_ctrl, &c->app_io_ctrl, sizeof(AVAppIOControl));
break;
AVAppIOControl *ctl = (AVAppIOControl *) (intptr_t)obj;
ctl->is_handled = 1;
return 0;
default:
break;
}
Expand Down

0 comments on commit 8026372

Please sign in to comment.