openexrdec: Catch exception by reference instead of by value

It would have to be copied otherwise, and is quite big.

CID 1373419
This commit is contained in:
Sebastian Dröge 2017-02-28 15:56:02 +02:00
parent ef70cd48c6
commit 4d434c7db5

View file

@ -342,7 +342,7 @@ gst_openexr_dec_handle_frame (GstVideoDecoder * decoder,
MemIStream (gst_pad_get_stream_id (GST_VIDEO_DECODER_SINK_PAD
(decoder)), map.data, map.size);
}
catch (Iex::BaseExc e) {
catch (Iex::BaseExc& e) {
gst_video_codec_frame_unref (frame);
GST_ELEMENT_ERROR (self, CORE, FAILED,