From b099ba649e4dd759ddb47df1bed3d917d9381d48 Mon Sep 17 00:00:00 2001 From: Ludvig Rappe Date: Wed, 15 Sep 2021 16:49:16 +0200 Subject: [PATCH] pbutils: Remove sample entry code "raw" Part-of: --- .../gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c | 2 -- subprojects/gst-plugins-base/tests/check/libs/pbutils.c | 7 ------- 2 files changed, 9 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c index 8e06c4a489..257c7e59b4 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c @@ -2429,8 +2429,6 @@ gst_codec_utils_caps_get_mime_codec (GstCaps * caps) if (g_strcmp0 (gst_structure_get_string (caps_st, "layout"), "g726") == 0) { mime_codec = g_strdup ("g726"); } - } else if (g_strcmp0 (media_type, "audio/x-raw") == 0) { - mime_codec = g_strdup ("raw"); } done: diff --git a/subprojects/gst-plugins-base/tests/check/libs/pbutils.c b/subprojects/gst-plugins-base/tests/check/libs/pbutils.c index e90f6b44d9..37ae33975e 100644 --- a/subprojects/gst-plugins-base/tests/check/libs/pbutils.c +++ b/subprojects/gst-plugins-base/tests/check/libs/pbutils.c @@ -1457,13 +1457,6 @@ GST_START_TEST (test_pb_utils_caps_get_mime_codec) fail_unless_equals_string (mime_codec, "g726"); g_free (mime_codec); gst_caps_unref (caps); - - /* raw */ - caps = gst_caps_new_empty_simple ("audio/x-raw"); - mime_codec = gst_codec_utils_caps_get_mime_codec (caps); - fail_unless_equals_string (mime_codec, "raw"); - g_free (mime_codec); - gst_caps_unref (caps); } GST_END_TEST;