[gstreamer-bugs] [Bug 322254] avcodec_open()/close() aren't thread-safe

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Dec 16 08:30:19 PST 2005


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=322254
 GStreamer | gst-ffmpeg | Ver: HEAD CVS

Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #55940|                            |committed
             Status|                            |
           Severity|critical                    |normal
             Status|NEW                         |RESOLVED
           Priority|High                        |Normal
         Resolution|                            |FIXED
            Summary|gst-ffmpeg isn't thread-safe|avcodec_open()/close()
                   |                            |aren't thread-safe
   Target Milestone|HEAD                        |0.10.1



------- Additional Comments From Tim-Philipp Müller  2005-12-16 16:30 -------
I've committed the actual patch, as I really want this to go into the upcoming
release.

A separate bug #324279 has been filed to make sure we add the build stuff for
unit tests at some point, with reference to the test case here.


2005-12-16  Tim-Philipp Müller  <tim at centricular dot net>

        * ext/ffmpeg/gstffmpeg.c: (gst_ffmpeg_avcodec_open),
        (gst_ffmpeg_avcodec_close):
        * ext/ffmpeg/gstffmpeg.h:
        * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_close),
        (gst_ffmpegdec_open):
        * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_dispose),
        (gst_ffmpegenc_getcaps), (gst_ffmpegenc_setcaps),
        (gst_ffmpegenc_change_state):
          Do proper locking around avcodec_open() and avcodec_close()
          (fixes #322254, patch by: Sebastien Cote and Luca Ognibene).


------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list