oox/source/export/drawingml.cxx  |    5 +++++
 oox/source/export/shapes.cxx     |    1 +
 sd/qa/unit/data/odp/tdf53970.odp |binary
 3 files changed, 6 insertions(+)

New commits:
commit b64c55169d72bfde6aee00673a56d5c25acfd4d4
Author:     Tünde Tóth <toth.tu...@nisz.hu>
AuthorDate: Thu Mar 24 16:54:01 2022 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Mar 30 20:47:06 2022 +0200

    tdf#53970 PPTX: fix export of embedded media files
    
    Embedded media files lost in documents created
    with Impress after PPTX export.
    
    Change-Id: I453b58f9cfa6a33653e9216fb82b66970a9ec31b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132095
    Tested-by: Jenkins
    Tested-by: László Németh <nem...@numbertext.org>
    Reviewed-by: László Németh <nem...@numbertext.org>
    Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132319

diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 708aea6fb29a..4d0317be921d 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1343,6 +1343,11 @@ void DrawingML::WriteMediaNonVisualProperties(const 
css::uno::Reference<css::dra
             aMimeType = "audio/mp4";
             eMediaType = Relationship::AUDIO;
         }
+        else if (aExtension.equalsIgnoreAsciiCase(".mp3"))
+        {
+            aMimeType = "audio/mp3";
+            eMediaType = Relationship::AUDIO;
+        }
     }
 
     OUString aVideoFileRelId;
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 7bc505e77481..86ca6264129d 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -1657,6 +1657,7 @@ static const NameToConvertMapType& lcl_GetConverters()
         { "com.sun.star.drawing.EllipseShape"              , 
&ShapeExport::WriteEllipseShape },
         { "com.sun.star.drawing.GraphicObjectShape"        , 
&ShapeExport::WriteGraphicObjectShape },
         { "com.sun.star.drawing.LineShape"                 , 
&ShapeExport::WriteLineShape },
+        { "com.sun.star.drawing.MediaShape"                , 
&ShapeExport::WriteGraphicObjectShape },
         { "com.sun.star.drawing.OpenBezierShape"           , 
&ShapeExport::WriteOpenPolyPolygonShape },
         { "com.sun.star.drawing.PolyPolygonShape"          , 
&ShapeExport::WriteClosedPolyPolygonShape },
         { "com.sun.star.drawing.PolyLineShape"             , 
&ShapeExport::WriteOpenPolyPolygonShape },
diff --git a/sd/qa/unit/data/odp/tdf53970.odp b/sd/qa/unit/data/odp/tdf53970.odp
new file mode 100644
index 000000000000..0d48cf5d6601
Binary files /dev/null and b/sd/qa/unit/data/odp/tdf53970.odp differ

Reply via email to