Skip to content

Commit 14ec9b6

Browse files
committed
Cleanup GStreamer ST20 TX plugin, workaround no longer needed
1 parent 0680689 commit 14ec9b6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

ecosystem/gstreamer_plugin/gst_mtl_st20p_tx.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -536,21 +536,10 @@ GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR, mtl_st20p_tx,
536536
GST_PACKAGE_ORIGIN)
537537

538538
static int gst_mtl_st20p_tx_frame_done(void* priv, struct st_frame* frame) {
539-
/* In case of format conversion (transmit vs input), MTL may call
540-
* gst_mtl_st20p_tx_frame_done twice.
541-
* To avoid double free, we set (frame->opaque = NULL) in first call so that the second
542-
* call can exit gracefully.
543-
*/
544-
if (frame == NULL || frame->opaque == NULL) {
545-
return 0;
546-
}
547-
548539
GstSt20pTxExternalDataChild* child = frame->opaque;
549540
GstSt20pTxExternalDataParent* parent = child->parent;
550541

551542
gst_memory_unmap(child->gst_buffer_memory, &child->map_info);
552-
553-
frame->opaque = NULL;
554543
free(child);
555544

556545
pthread_mutex_lock(&parent->parent_mutex);

0 commit comments

Comments
 (0)