~ubuntu-branches/ubuntu/trusty/gst-libav1.0/trusty

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavformat/nut.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge, Iain Lane, Sebastian Dröge
  • Date: 2014-02-09 11:42:06 UTC
  • mfrom: (13.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20140209114206-ksn1eu97d9pt2iza
Tags: 1.2.3-1
[ Iain Lane ]
* Drop ltmain-as-needed patch and do the same with dh_autoreconf
  --as-needed.

[ Sebastian Dröge ]
* New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
    return ((a->ts - b->ts) >> 32) - ((b->ts - a->ts) >> 32);
180
180
}
181
181
 
182
 
void ff_nut_add_sp(NUTContext *nut, int64_t pos, int64_t back_ptr, int64_t ts){
 
182
int ff_nut_add_sp(NUTContext *nut, int64_t pos, int64_t back_ptr, int64_t ts){
183
183
    Syncpoint *sp= av_mallocz(sizeof(Syncpoint));
184
184
    struct AVTreeNode *node = av_tree_node_alloc();
185
185
 
 
186
    if (!sp || !node) {
 
187
        av_freep(&sp);
 
188
        av_freep(&node);
 
189
        return AVERROR(ENOMEM);
 
190
    }
 
191
 
186
192
    sp->pos= pos;
187
193
    sp->back_ptr= back_ptr;
188
194
    sp->ts= ts;
191
197
        av_free(sp);
192
198
        av_free(node);
193
199
    }
 
200
 
 
201
    return 0;
194
202
}
195
203
 
196
204
static int enu_free(void *opaque, void *elem)